Answer:
Symbol table is a data structure which is created by compiler that is used to keep the track of variable.
The symbol table contain Symbol name,Type and Scope in their table Enteries .
The symbol name is the variable name ,function name etc .
The type defined the datatype.
The scope defined the scope and visibilty of variable and function.
following are the example of symbol table
let us consider a code
int fun(int c)
{
double s = 0.5;
}
Now the Symbol Table for this code which is created by compiler is
Symbol name Type Scope
fun function int local scope
c int function parameter
s double function parameter
For any variable in c .The symbol table store the symbol name type and scope for the variable