0

What is the difference between variable and identifier?

I am not getting this stuff

9th Nov 2017, 6:04 PM
Ambuj
Ambuj - avatar
1 Odpowiedź
+ 5
The identifier is the name that you gave to the variable (and other such things, such as classes, functions, types, etc...) A variable is a spot in memory that you're using to store data in, you give it a name (identifier) so that you can easily access and manipulate it without having to know its actual memory address.
9th Nov 2017, 6:06 PM
AgentSmith