What are Tokens in C++

What are Tokens

Each individual word and punctuation is referred to as a token in C++. Tokens are the smallest building block or smallest unit of a C++ program.

These following tokens are available in C++:





Identifiers: Identifiers are names given to different entries such as variables, structures, and functions. Also, identifier names should have to be unique because these entities are used in the execution of the program.

Keywords: Keywords is reserved words which have fixed meaning and its meaning cannot be changed. The meaning and working of these keywords are already known to the compiler. C++ has more numbers of keyword than C and those extra ones have special working capabilities.

Operators: C++ operator is a symbol that is used to perform mathematical or logical manipulations.

Constants: Constants are like a variable, except that their value never changes during execution once defined.

Strings: Strings are objects that signify sequences of characters.


0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *

5 × 5 =