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
They are used to evaluate operators, and they have an effect on the content of the flags. CMP CMPS (CMPSB) (CMPSW) CMP INSTRUCTION Idea: To measure up to the operators. Syntax: CMP

Types of chat room: Java Chat rooms: The most common and popular chat scripts are based on java which is object oriented language. Java is freely available and comes with virt

Question 1 Write a note on modems Question 2 What are the Safe Chatting Rules Question 3 Explain three basic kinds of hypertext links Question 4 Write a no

Another way of classifying a computer system is based upon its size and capabilities: Microcomputers: Microcomputers are systems based on the use of microprocessors. A Micr

i want design circuit this Buffer(LIFO).please help me

Concept of instruction: The CPU is a semiconductor integrated  circuit chip consisting of a large number of transistors. In personal computers, the CPU is also referred by the

Process Control Management:   A  process  is an executing program. It is considered the standard unit of work within a computer system. Every executing program is treated as a


Processor: Processor plays major role in a computer. One should carefully decide about the type of processor and its speed before making a choice. Currently Core 2 Duo process