+ 1
what is variable
variable is defined as there value can be change when the time of execution
7 Réponses
0
that's value change with time refer to your application
and variable type its type of this value number char date.
0
it's change their value according to time .
its create memory space for saving values.
0
variable is a pot of value ,which is alocate a memory space for save the value
0
simply variable is a container that stores the value. .
0
variable is a name given to a particular memory location in the memory unit...
to variables we can asign a value.....and store the value
- 1
The term 'variable' means which is not fixed and can be be change as required. In c programming what happen when we use variables a definte memory space is reserved for that variable
- 1
hello sandhya u can't remember every memory cell address well no one can,thats why we r giving that memory address a name so u can access that memory cell by name that is simply we call it as variable, next u can ask how much memory has to allocate well that's why data type is for, data type suppose int in c# 4 bytes so int I=0; now u r allocating variable I for 4 bytes of space and assigning value 0 now your value 0 is stored where variable I referring memory address. and now execution c# executes it's statement line by line that means if I write
int I=o; this line executes first value of I is 0
I =2; now value of I is 2, so values of variables can change when the time of execution. for the best of my knowledge i tried to explain I don't know if I made a mistake.thank you