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

QUESTION (a) Describe what you understand by (i) "openness" and (ii) "Scalability" of a distributed system (b)What is the role of middleware in a distributed system? (c)

each of the following functions has the form f(x ) = (ax+b) mod n. assume that each function has type N base n arrow N base n, so that we can think of f as a cipher for an alphabet

Question 1 Define the concept of equivalence relation. Give atleast two examples of equivalence relation Question 2 Prove that a graph G is connected if and only if it has a

Foundation of Computer System Q.No-1: What do you understand by the Efficiency in term of Computers? and How will you measure it? Also define Speed and its factors which ca

#to determine whether given year is leap year or not

Digital Video Disks: DVD stands for Digital Video Disks or Digital Versatile Disks. A DVD stores much more data than a CD-ROM. Its capacities are 4.7GB, 8.5GB, and 20GB etc. T

hello do have c programming experts

Question 1 What are the differences between closed and open systems? Question 2 What are the characteristics of a good documentation? Question 3 What are the steps invol

1. The standard way for debuggers to plant breakpoints in a program in RAM (whatever the processor instruction set) is to save the breakpointed instruction and replace it by a jump