Question

What is the primary purpose of lexical analysis in a compiler?

A Identifying syntax errors in the source code
B Transforming high-level code to assembly language
C Converting source code into a stream of tokens
D Performing optimizations on the intermediate code
Practice Next

Relevant for Exams:

Hey! Ask a query