0

What is variable?

20th Jan 2017, 12:07 PM
Bhanu Pratap Mishra
Bhanu Pratap Mishra - avatar
2 Réponses
+ 3
It is a named memory location. You can understand this even more easily by imaging a memory space, so whenever you want to create a space for some data of any data type, you basically assign a variable(name) to that memory location for being able to access it with the same variable name whenever you need it. int a =5; Here you telling the compiler to store 5 which is of int datatype in the memory location which you are naming a.
20th Jan 2017, 12:16 PM
Harsimran Kaur Bindra
Harsimran Kaur Bindra - avatar