C Keywords

The keywords, also known as ‘reserved words’ have special meanings to C compiler.

  • All keywords in C are lowercase.
  • An identifier may contain a keyword as part of its name, but an identifier cannot have same case and spelling as a C keyword.
  • The keywords are case sensitive. For example, the identifier with the name FOR is allowed, but is a bad programming practice and not recommended.

Following is a list of keywords available in ANSI C.

autodoubleintstruct
breakelselongswitch
caseenumregistertypedef
charexternreturnunion
continueforsignedvoid
doifstaticwhile
defaultgotosizeofvolatile
constfloatshortunsigned

We will learn more about usage of these keywords in upcoming lessons.