- 1

What the actual meaning of variable

4th Feb 2018, 5:53 AM
MAC Zonda
MAC Zonda - avatar
6 ответов
+ 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*/
4th Feb 2018, 6:01 AM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 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);
4th Feb 2018, 5:56 AM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 2
i am new to this stuff am a freshman so can you explain it to me in more simple ways
4th Feb 2018, 5:59 AM
MAC Zonda
MAC Zonda - avatar
+ 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
8th Feb 2018, 12:26 PM
Vishwanath Patil
Vishwanath Patil - avatar
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.
31st Mar 2018, 11:14 AM
Khaled Genena
Khaled Genena - avatar