Variable - concept of programming language, Basic Computer Science

Variable - Concept of programming language:

Variable: As referencing memory by its physical address is very tedious, variable names are used. A variable is a symbolic name given to a memory location. Once a variable is assigned to a memory location, the programmer can refer to that location by variable name instead of its address. Variable is the connection between a name and a value.   It is composed of a name, attribute, reference and a value. Attribute means the type of value a variable can hold.  

For example the following programming code in C declares variables a & b.    

int a,b;      

char c;  

In the above declaration, a & b are the variable name, which refer to a memory location where integer values can be stored. Instead of address of the memory location, variable names a and b will be used to refer to a memory location in order to store or retriever update its value.  Similarly,  c is a variable name given to a memory location where a character value can be stored. Further c will be used to refer to the memory location in order to store or retrieve or update its value.  

Posted Date: 10/23/2012 3:45:00 AM | Location : United States

Related Discussions:- Variable - concept of programming language, Assignment Help, Ask Question on Variable - concept of programming language, Get Answer, Expert's Help, Variable - concept of programming language Discussions

Write discussion on Variable - concept of programming language
Your posts are moderated
Related Questions
file system

Create a program that uses a menu with options to enter student information (name, ID, GPA), print student information, or quit the program. Use data files and FILE pointers to sto

I want the detailed theory about the options which occur when we right click on a folder.

find the regular expression of(a/?)(a/b)?

Question 1 Define Internet and explain its working Question 2 Explain page format specifiers and page content specifiers of XSL-FO Question 3 Write a note on HTML

i am currently studying my computer science engineering 2nd yr. i am unable to select what specification should i take please help me

Output Devices Video Display Unit (VDU) or Monitor Video Display Unit is similar to a television. It is used to display the results of processes. The screen is il

Example of flowcharting: Example Problem statement: To find out whether a given number is even or odd. Algorithm: Step 1 Start Step 2 INPUT the number n  Step 3

APPLICATION SOFTWARE Application Software generally is the software which is used to generate customized applications for the clients. Ex: Word Star, Lotus 1-2-3, Ms-

Classify computer systems according to capacity. How they are different from computers according to the classification of technology. Provide comparative study also.