A variable is a place holder for data.
http://www.javacertificate.net
2006-06-07 05:44:30
·
answer #1
·
answered by Albin Joseph 3
·
0⤊
0⤋
I'm a bit rusty in c, but variables are the same in every language, so here goes:
A variable is a place in the computer's memory that can store
information. To access the infomation, you need to know the address, and how to read the variable. for example '00000001' can be read in the memory is the number 1, or the character with the ASCII code 1(can't remember which one), or the value TRUE and that depends on the type of variable you're using(character, number, boolean) - like looking at it with a different set of glasses, I guess.
You can store information in the varialbe, like this:
MyName='Alice';
MyAge='32';
and you can compare the information in it:
if MyName=>65
{
....
}
C is very powerful in that you can use the memory address of a variable for manipulations, especially when you handle arrays.
2006-06-07 05:41:56
·
answer #2
·
answered by asaaiki 3
·
0⤊
0⤋
A variable, such as 'myshoesize', is just a name for a memory location. You can put a value into it (assign it a value) by putting it on the left hand side of an expression such as :-
myshoesize = 11
Once it has a value, you can get the value out of it by using it on the right hand side of an expression :-
nextbiggestshoesize = shoesize + 1
2006-06-07 05:52:07
·
answer #3
·
answered by ricochet 5
·
0⤊
0⤋
from the word 'variable' you can find out that its not a 'constant' and its keeps changing...lol..its been sometime since i studies comp sci and i didnt likie it much..
2006-06-07 05:46:41
·
answer #4
·
answered by ms.confused 3
·
0⤊
0⤋