The output of a lexical analyzer is
2017
The output of a lexical analyzer is
- A.
A parse tree
- B.
Intermediate code
- C.
Machine code
- D.
A stream of tokens
Attempted by 379 students.
Show answer & explanation
Correct answer: D
The lexical analyzer is the initial phase of a compiler responsible for processing source code characters. It groups these characters into meaningful units known as tokens, which are then passed to the syntax analyzer.
A video solution is available for this question — log in and enroll to watch it.