Identifier is user defined name given to function, variable, structure, union, array etc. followings are rules to name an identifier.
- Name must be start with alphabet or underscores
- An identifier may have numbers but not used as first character
- Special symbol is not allowed .
Valid Variable Name
|
Invalid Variable Name
|
A2
|
2A
|
_a
|
-a
|
A_B
|
A
B
|
*a
|
A& (any special symbol)
|
No comments:
Post a Comment