TOKENS
A token is a smallest independent unit of program. (also words in c language is called tokens)
Tokens are of 5 types➜
- Keywords/Reserved words
- Identifiers
- Literals
- Operators
- Separators
- Keywords/Reserved words -: These are the tokens which have fixed meaning in a language. e.g -: void,if,for,while etc.
- Identifiers -: These are programmer made tokens.
- Literals -: These are the constants used in c program.
- Operators -: These are the tokens that computes and then return. e.g -: +,-,*,<,>,>=,<=
- separators -:These are the tokens that separates one section of code from another. e.g -: [ ] , { } , ( )