What is the purpose of a symbol table in a compiler ?

PYQ TPSC Computer/IT Posts 2024

What is the purpose of a symbol table in a compiler ?

  1. A.

    Stores machine code instructions for each source code segment

  2. B.

    Tracks the names, types, and memory locations of variables

  3. C.

    Manages program execution and function calls

  4. D.

    Optimizes the generated code for faster execution

Attempted by 639 students.

Sign up free to check your answer

Sign up free

Explore the full course: Tpsc Assistant Technical Officer

Loading lesson…