The definition of identifier and the rules of identifier is given below.
Solution:
Identifier: The names that are used to reference variables ,functions ,arrays ,labels and various other user-defined objects are called identifiers.
Rules of identifier:
1. An identifier name can vary from 1 to 32 characters.
2. The first character must be a letter or an underscore( _ ) with subsequent characters.
3. An identifier name cannot be the same as a C keyword and it should not have the same name as functions that are in the C library.
4. Must not contain white space.
5. In C,uppercase and lowercase are treated differently .Hence, count,Count and COUNT are three different identifier name.
Solution:
Identifier: The names that are used to reference variables ,functions ,arrays ,labels and various other user-defined objects are called identifiers.
Rules of identifier:
1. An identifier name can vary from 1 to 32 characters.
2. The first character must be a letter or an underscore( _ ) with subsequent characters.
3. An identifier name cannot be the same as a C keyword and it should not have the same name as functions that are in the C library.
4. Must not contain white space.
5. In C,uppercase and lowercase are treated differently .Hence, count,Count and COUNT are three different identifier name.
No comments:
Post a Comment