answersLogoWhite

0


Best Answer

It is up to the designer of the compiler to decide...

it can be something like this:

struct Type;

struct Block;

typedef struct Variable {

const char *name;

struct Type *type;

struct Block *block; /* refers to the block that is the scope of the variable */

int attributes; /* volatile, const, static etc */

} Variable;

User Avatar

Wiki User

12y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

The symbol table is a data structure containing a record for each variable name, with fields for the attributes of the name.

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

Parse Table

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Which data structure in a compiler is responsible for managing information about variables and their attributes?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Which data structure in a compiler is used to manage memory location of variables and their attributes?

Symbol table.


Define and differentiate between endogenous and exogenous variables?

The endogenous variables value is established by the conditions of the other variables in the structure. The exogenous variables value in independent of the conditions of the other variables in the structure. The difference between the endogenous and exogenous variables is the endogenous depends solely on the structure and the exogenous depend on outside elements.


What is the difference between classes and structure?

Classes are expanded concepts of structures, and can hold functions along with variables and other information.


Distinguish between Variable and attribute parameters?

Variables are intended for bulk data, while attributes are intended for ancillary data. Another difference is that variables may be multidimensional, while attributes are all scalars or vectors.


What is a structure member?

methods and variables inside the structure is callled structure member


What are object attributes called that helps them distinguish them from other variables you might use?

Fields


What is an attribute in java?

The attributes in schema are defined like kid elements. In order to have the attributes the element has a complex type. Attribute are the set of data elements that define the object. The declaration of an object attribute take the following form: <modifier> <type> <name> = initial_value;


Which purpose structure is using in c?

structure is a collection of variables of different datatypes.


How many structure variables of a given type can you use in a C program?

You can use unlimited number of variables for a structure and you can also declare array of structures.


Why is data and information are used interchangeably?

The term data means groups of information that represent the qualitative or quantitative attributes of a variable or set of variables. Data (plural of datum, which is seldom used) are typically the results of measurements and can be the basis of graphs, images, or observations of a set of variables. Data are often viewed as the lowest level of abstraction from which information and knowledge are derived. So no they cannot be used interchangeably.


What is structure in'c'?

Structures in CA structure is a collection of variables under a single name. These variables can be of different types, and each has a name which is used to select it from the structure. A structure is a convenient way of grouping several pieces of related information together.A structure can be defined as a new named type, thus extending the number of available types. It can use other structures, arrays or pointers as some of its members, though this can get complicated unless you are careful.


What are the advantages of using Unions in a structure in C?

In case of structure each variables have their own storage location whereas for unions all the variables share a common memory location. In structure all the variables can be handled at a time but for union only a member can be handled at a time.