C Keywords ?


The tokens which have predefined meaning in C language are called keywords.C programs are constructed from a set of reserved words which provide control from libraries which perform some special functions, these reserved words in C library are called keywords.

There are total 32 keywords available in C language as shown below:-


auto double int struct
break else long switch
case enum register typedef
char extern return union
const float short unsigned
continue for signed void
default goto sizeof volatile
do if static while

Rules followed while using the keywords:-

  1. The keywords should not be used as variable, function names, array names etc.
  2. The meaning of the keywords cannot be changed by the user.
  3. All keywords should be written in lower case letters.
Note: We should never use capital letters while using keywords.If we use capital letters for keywords, they are treated as an identifiers.