Sunday, February 10, 2013

C/C++ Programming: Keywords

There are some reserved words in C language whose meaning is predefined in C compiler. We cannot use a keyword as a variable name. Keywords can be for specific purpose. Assigning a new meaning for keyword is not allowed. Mixing up variable names with keywords will create compilation error.

32 keywords are used in C. The following figure gives you a ready reference for C keywords. These keywords are all lowercase. Since upper case and lowercase characters are not considered same in C, we can use an uppercase keyword as an identifier. But it is not considered as  good programming practice.

 C programming keyword list

Print Page

RELATED POSTS



No comments:

Post a Comment