Tokens in C Language
C tokens are the basic buildings blocks in C language which are the most important element to be used in creating a C program. Each and every smallest individual units which are meaningful to the compiler in a C program are known as C tokens.
Classification of tokens in C
Tokens in C language can be divided into the following six categories:
No. | Token Type | E.g. |
1 | Keywords | int, while |
2 | Identifiers | main, total |
3 | Constants | 10, 20 |
4 | Strings | "total", "hello" |
5 | Special symbols | (), {} |
6 | Operators | +, /, -, * |
ADVERTISEMENT