Tokens (Lexical Unit)

Posted On
Socialize It →
1
The smallest individual unit in a program is know as token or a lexical unit.

C++ Tokens are as :-

Keyword
Identifiers
Literals
Punctuation
Operators


Now lets understand every Token in C++

Keywords

These Are the words that convey a special meaning to the language compiler. 
These can’t be used as normal identifier names .

Identifier

An identifier is long sequence of letters and digits.  The first character should be a letter (_) counts as letters.

Literals


Literals are data items that never change their value during a program run.

1 comment:

  1. Tomorrow is my exam ... this helped me do a quick review fast :> thanks !!

    ReplyDelete

'