Question

    What is the primary purpose of lexical analysis in a

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

    Solution

    Converting source code into a stream of tokens

    Practice Next

    Relevant for Exams: