A token is a smallest individual unit in a program.
A C program consists of various tokens as a token can either be a KEY WORD
IDENTIFIER
CONSTANT
STRING
SYMBOL
KEYWORD:
Key words are the reserved words which have a particular meaning. And already defined by the developer.
Key words cannot be used as a variable name or function name.
There are totally 32 keywords in C programming language.
Auto | Else | Long | Switch |
Break | Enum | Register | Typedef |
Case | Extern | Return | Union |
Char | Float | Short | Unsigned |
Const | For | Signed | Void |
Continue | Goto | Sizeof | Volatile |
Default | If | Static | While |
Do | Int | Struct | pack |