The Token is an identifier. It can be constant, keyword, string literal, etc. A token is the smallest individual unit in a program. C has the following tokens:
- Identifiers: Identifiers refer to the name of the variables.
- Keywords: Keywords are the predefined words that are explained by the compiler.
- Constants: Constants are the fixed values that cannot be changed during the execution of a program.
- Operators: An operator is a symbol that performs the particular operation.
- Special characters: All the characters except alphabets and digits are treated as special characters.
Sandhya Answered question June 28, 2023
A token is the smallest unit used in a C program. Each and every punctuation and word that you come across in a C program is token. A compiler breaks a C program into tokens and then proceeds ahead to the next stages used in the compilation process.
Sandhya Answered question June 28, 2023
