Question 12
A compiler performs lexical analysis and stores: every unique identifier in the Symbol Table,• every unique integer constant in the Constant Table.• Keywords, operators, delimiters, and punctuation symbols are not stored in either table.
Consider the following program.
How many entries will be present in the Symbol Table and the Constant Table, respectively?
Symbol Table = 5, Constant Table = 3
Symbol Table = 4, Constant Table = 2
Symbol Table = 5, Constant Table = 2
Symbol Table = 6, Constant Table = 2