What is C tokens?


A token is the smallest unit or basic unit of a C program. One or more characters are grouped in sequence to form meaningful words. These meaningful words are called tokens.

There are various types of C tokens:-

  1. Keywords
  2. Identifiers
  3. Constants
  4. Strings
  5. Operators
  6. Special Symbols


No. Tokens Examples
01 Keywords int, float, do, if etc.
02 Identifiers sum, length, i etc.
03 Constants 10, 10.5, 'a' etc.
04 Operators +, -, *, / etc.
05 Strings "hello", "shine" etc.
06 Special symbols {}, [], (), @ etc.