COMPILER DESIGN

TOOLS AND TECHNIQUES FOR COMPILER DESIGN

MISCELLENOUS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Symbol table is a data structure which contains
A
a record for each identifier
B
attributes of each identifier
C
both the options
D
none of the mentioned
Explanation: 

Detailed explanation-1: -Symbol table is a data structure created and maintained by compilers for storing information about the occurrence of various entities such as variable names, function names, objects, classes, interfaces, etc. Symbol table is used by both the analysis and the synthesis parts of a compiler.

Detailed explanation-2: -The symbol table primarily helps: In checking the program’s semantic correctness. Using the symbol table you can, for example, determine whether a variable has been declared and in that case if it is of an integer or floating-point type.

There is 1 question to complete.