Ask Question

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

+2
Answers (1)
  1. 24 May, 04:17
    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?
Find 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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers