What is the difference between variables and identifiers?????? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

What is the difference between variables and identifiers??????

Is both are same??

5th Jan 2017, 6:18 AM
Pravin
Pravin - avatar
3 Answers
+ 7
variable have a memory location and data type that you can store a value inside it.but identifier is a name for your variable ! they're not same thing.
5th Jan 2017, 10:12 AM
Amir Goodarzi
Amir Goodarzi - avatar
+ 4
*variables are like letters in math and identifiers are like numbers in literature
7th Jan 2017, 2:28 AM
B*****_C*****_
B*****_C*****_ - avatar
+ 3
values stored in the memory location which changes when program is running is nothing but a variable, and the name given to it is identifier so as we can easily specify the location no they aren't same
7th Jan 2017, 1:44 AM
kranthi mudhiraj