In a passage of text, individual words and
punctuation marks are called tokens. Similarly, in a C program the smallest
individual units are also known as C tokens. C has six types of tokens:
1. Identifiers e.g. x area __ temperature PI
2. Keywords e.g. int float for while
3. Constants e.g. -15.5 100
4. Strings e.g. “ABC” “year”
5. Operators e.g. + - *
6. Special Symbols e.g. ( ) [ ] { }
Comments
Post a Comment