Identifiers In C Language
Identifier refers to name given
to entities such as variables, function, structures etc.
Identifier must be unique. In identifier
we can use character, digit, under score
in a program.
Rules for constructing C identifiers
1 .
A
valid identifier can have letters and digits or underscore.
2 .
The first letter of identifier can be either a letter or
an underscore.
3 .
You cannot use keyword as identifiers.
4 . There is no rule on how long an identifier can
be.how you may run into problem in some compilers if the identifier is longer
than 31 characters.
Fig: Identifier In C |
No comments:
Post a Comment