Ask Question
5 January, 08:49

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

+1
Answers (1)
  1. 5 January, 10:19
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers