Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App
geeksforgeeks
Browser
Continue

Related Articles

GATE | GATE CS 2010 | Question 13

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

Which data structure in a compiler is used for managing information about variables and their attributes?
(A) Abstract syntax tree
(B) Symbol table
(C) Semantic stack
(D) Parse Table


Answer: (B)

Explanation: Symbol table is a data structure used by a language translator such as a compiler or interpreter, where each identifier in a program’s source code is associated with information relating to its declaration or appearance in the source, such as its type, scope level and sometimes its location (Source: http://en.wikipedia.org/wiki/Symbol_table)



Quiz of this Question

My Personal Notes arrow_drop_up
Last Updated : 01 Sep, 2021
Like Article
Save Article
Similar Reads