Ask Question
21 October, 03:36

In a C system, what is in a symbol table entry for a variable in addition to its name?

+1
Answers (1)
  1. 21 October, 04:36
    0
    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
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “In a C system, what is in a symbol table entry for a variable in addition to its name? ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers