- 1
What the actual meaning of variable
5 Respuestas
+ 21
2,3,4 ,pi,9.8 etc have a fixed value , so these are called as constants
/*now something whose value can be changed i.e, can vary ... then we call it as variable , see my previous answer , i changed value of x from 2 to 4 ... so x is a variable*/
+ 19
variable means which can vary ie can take different values
for example:::
int x=2;
System.out.println(x);
x=4;
System.out.print(x);
+ 2
i am new to this stuff
am a freshman so can you explain it to me in more simple ways
+ 2
Simply ,Variable is a container that stores the data .
e.g : string Name="Kedar";
in above e.g string is data type, Name is variable name, and "Kedar" is data for Name variable
0
Variable is the box were you create to store data into, to re-use them when your program runs. it's called variables cause they will vary "change" while your programs runs.