COMPILER DESIGN

LEXICAL ANALYSIS

ROLE OF THE LEXICAL ANALYZER

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Consider the following statements:(I) The output of a lexical analyzer is groups of characters.(II) Total number of tokens in printf("i=%d, &i=%x", i, &i); are 11.(III) Symbol table can be implementation by using array and hash table but not tree.Which of the following statement(s) is/are correct?
A
Only (I)
B
Only (II) and (III)
C
All (I), (II), and (III)
D
None of these
Explanation: 

Detailed explanation-1: -(1) The output of the lexical analyzer is tokens.

Detailed explanation-2: -Explanation: The lexical analyzer produces a list of tokens as output.

Detailed explanation-3: -The lexical token is a string containing a unit of grammar used in the programming language expressed as a series of characters, and it is generated by the lexical analyzer.

There is 1 question to complete.