Identifiers In C

Identifiers are names given to various program elements, such as symbolic constants, variables, functions, labels, arrays and other user – defined objects. Its consists sequence of letters and digits with either a letters or an underscore as a first character. Both upper case and lower case letters are permitted. By convention a lower case letter is used. The underscore character is also permitted in identifiers. It is normally used as a link between two words in a long identifier. The use of a leading underscore is not recommended. Space are not allowed in an identifiers. C keywords/ reserve words cannot be used as an identifier. Maximum of 31 characters can be used to write an identifier.


Keywords

There are certain reserve words called keywords that have standard, predefined meanings in C. These keywords can be used only for their intended purpose. They cannot be used as programmer – defined identifiers. The standard keywords are listed in table below.

img

Note that all keywords are in lowercase. Since uppercase and lowercase characters are not equivalent, it is possible to use an uppercase keyword as an identifier.



About the Author



Silan Software is one of the India's leading provider of offline & online training for Java, Python, AI (Machine Learning, Deep Learning), Data Science, Software Development & many more emerging Technologies.

We provide Academic Training || Industrial Training || Corporate Training || Internship || Java || Python || AI using Python || Data Science etc





 PreviousNext