1.

What do you understand about tokens in C or C++?

Answer»

A token in C or C ++ is the smallest element of a PROGRAM that the compiler can understand. Tokens can be of the following TYPES (given ALONG with examples):

  • Keywords - "new", "INT", "class", etc.
  • Strings - "Ritik", "Vaibhav", "Muskan", etc.
  • Identifiers - "i", "j", "abc", "TEMP", etc.
  • Special Symbols - "\n", "\r", "\t", etc.
  • Constants - 5, 10, 403, etc.
  • Operators - +, - , *, etc.


Discussion

No Comment Found