answersLogoWhite

0

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

13y ago

What else can I help you with?

Related Questions

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

Symbol table.


How are attributes represented?

Attributes are represented as properties or characteristics of objects within a data structure, often defined as key-value pairs in programming and databases. In object-oriented programming, attributes are typically represented as fields or variables within a class. In databases, attributes correspond to columns in a table, where each row represents a record. This representation allows for the organization and manipulation of data effectively.


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 are variables in a questionnaire?

Variables in a questionnaire are characteristics or attributes that can be measured or evaluated, such as age, gender, income level, or satisfaction score. These variables help researchers gather data and analyze relationships between different factors in a study. They provide a way to quantify and categorize information obtained from survey respondents.


What is the difference between classes and structure?

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


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;


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.


Which purpose structure is using in c?

structure is a collection of variables of different datatypes.


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.


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.