Professional Documents
Culture Documents
Elementary Programming: Lecture # 3
Elementary Programming: Lecture # 3
PROGRAMMING
Lecture # 3
IDENTIFIER
An identifier is a name for variables,
constants, functions, types, labels, classes
etc.
It consists of a letter or underscore followed
by any sequence of letters, digits or
underscores
Names are case-sensitive. The following are
unique identifiers:
Hello, hello, whoami, whoAMI, WhoAmI
Names cannot have special characters in
them
e.g., X=Y, J-20, #007, etc. are invalid identifiers.
NewStudents 6
OldStudents 21
TotalStudents 27
Value1 20
Value1 = Value2;
Value2 20
Hold 10
Value1 20
Value2 = Hold;
Value2 10
Hold 10