+ 2

What is variable?

variables are allocated memory to store data. compiler allocate memory,based on the data type of the variable. variables must be declared before they are used. https://www.sololearn.com/discuss/534631/?ref=app

17th Jul 2017, 2:02 PM
keerthana MZ
keerthana MZ - avatar
3 Answers
+ 5
In simple variables are user defined name given to the memory location In c++ a variable must be declared before the use Eg:int a= 5; int is the data type that is integer a is the name of variable 5 is value assigned
17th Jul 2017, 2:07 PM
Athul Joy
Athul Joy - avatar
+ 4
variables are memories to store data
17th Jul 2017, 2:04 PM
keerthana MZ
keerthana MZ - avatar
+ 2
a variable is a memory location that you can assign information on it.
17th Jul 2017, 9:16 PM
Shervin Jarrahi
Shervin Jarrahi - avatar