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
PLEASE HELP ME TO CONSTRUCT THE XOR GATE USING ONLY NAND GATE

construct a tree where preorder is ABCDFGE

4. Union City Al has decided to upgrade their tornado warning system. The city leaders have identified six potential locations for erecting a warning siren tower. They want to e

socket programming


Question 1 Explain the structure of Mathematical Model in your own words Question 2 Describe Erlang family of distributions of service times Question 3 Describe the algo

Question: Imagine that you are part of a design team creating a new mobile phone for people such as "Angel White" whose persona is given below: Angel is turning 90 years old

When purchasing a database program, you must have a clear idea of what you need it for. Ask yourself the following questions. (1) Will it perform all (he operations necessary f

Search in Problem Solving If Artificial Intelligence can notify the extra sciences about something, it is about trouble solving and, in exacting, how to search for solutions to

WHAT IS MULTIPLE CONTIGUOUS VARIABLE PARTITIONING