+ 2
What is the difference between an identifier and a variable?
4 odpowiedzi
+ 7
Identifier is something that identifies. Variable is a the container which stores some value. Think of identifier as your name and variable as your body which holds your organs, bones etc.(value)
+ 2
Identifier is any word used in the program but variable is the used with a specific data type and also whose values tend to change
+ 1
identifier refers to functions,variables... that is user defined one and variables is a place that hold the data value
0
A variable is a type of identifier. An identifier can be a variable, function, label or any user defined item.
There are set of rules for declaring identifiers, if can only contain alphabets, numbers or under score. It can only begin with an alphabet or an underscore