Keywords & Tokens
Keywords are the words whose meaning has already been explained to the C compiler. The keyword cannot be used as the variable name. If we try to do so we are trying to assign new meaning to the keyword. The keywords are also known as ‘Reserved words’. Following are 32 keywords available in C.
int signed typedef auto for const
char unsigned enum extern while volatile
float short register do sizeof double
long static if goto struct void else continue union return switch default break case
Restrictions apply to keywords
- Keywords are the words whose meaning has already been explained to the C compiler and their meanings cannot be changed.
- Keywords can be used only for their intended purpose.
- Keywords cannot be used as user-defined variables.
- All keywords must be written in lowercase.