1.

Write a note on character set and tokens. Give example.

Answer»

Character set is a set of valid characters that a language can recognize.

• Letters A-Z,

• Digits 0-9

• Special characters + - */A\()[]{}=!=o'@

Tokens:  A token is a group of characters that logically belong together. C++ uses the following types of tokens. Keywords, Identifiers, Literals, Punctuators, and Operators.



Discussion

No Comment Found

Related InterviewSolutions