answersLogoWhite

0


Best Answer

By dereferencing the pointer variable. This can be achieved in two ways:

typedef struct s {

int i;

float f;

};

void f (struct s* p) {

int x = p->i; /* using pointer to member operator */

float y = (*p).f; /* using dereference operator */

}

The two methods are functionally equivalent.

User Avatar

Wiki User

8y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How can an individual structure member be accessed in terms of its corresponding pointer variable?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

If structure is arraythen an individual array element can be accessed by writing a variable?

A structure is not an array. Individual array elements are accessed through a number, called a "subscript". This subscript can be a constant, or a variable, or any expression that can be evaluated to give an integer.A structure is not an array. Individual array elements are accessed through a number, called a "subscript". This subscript can be a constant, or a variable, or any expression that can be evaluated to give an integer.A structure is not an array. Individual array elements are accessed through a number, called a "subscript". This subscript can be a constant, or a variable, or any expression that can be evaluated to give an integer.A structure is not an array. Individual array elements are accessed through a number, called a "subscript". This subscript can be a constant, or a variable, or any expression that can be evaluated to give an integer.


What is a corresponding variable?

no such thing


What is the difference between the structure tag and structure variable?

The structure tag is a type. The structure variable is an instance of that type.


Is the part of the program in which a variable may be accessed?

Your class, enum or getter methods.


What is a structure variable in computer programming?

A structure variable is a name that refers to a data structure. For example: struct S {/*...*/}; int main (void) { S x; /* x is a structure variable that refers to an instance of the structure S */ // use x... return 0; }

Related questions

If structure is arraythen an individual array element can be accessed by writing a variable?

A structure is not an array. Individual array elements are accessed through a number, called a "subscript". This subscript can be a constant, or a variable, or any expression that can be evaluated to give an integer.A structure is not an array. Individual array elements are accessed through a number, called a "subscript". This subscript can be a constant, or a variable, or any expression that can be evaluated to give an integer.A structure is not an array. Individual array elements are accessed through a number, called a "subscript". This subscript can be a constant, or a variable, or any expression that can be evaluated to give an integer.A structure is not an array. Individual array elements are accessed through a number, called a "subscript". This subscript can be a constant, or a variable, or any expression that can be evaluated to give an integer.


What is a corresponding variable?

no such thing


How do you find the missing variable in corresponding angles?

The answer depends on which variable is missing.


How can you tell if a table of values represents a function?

If all the values of the "independent" variable (x) are different then it is a function.If there are any repeats of the independent variable, the corresponding dependent variable, y, must be the same.If all the values of the "independent" variable (x) are different then it is a function.If there are any repeats of the independent variable, the corresponding dependent variable, y, must be the same.If all the values of the "independent" variable (x) are different then it is a function.If there are any repeats of the independent variable, the corresponding dependent variable, y, must be the same.If all the values of the "independent" variable (x) are different then it is a function.If there are any repeats of the independent variable, the corresponding dependent variable, y, must be the same.


What is the difference between the structure tag and structure variable?

The structure tag is a type. The structure variable is an instance of that type.


The ratio of the change in the y-variable to the corresponding change in the x-variable is called the lines what '?

slope


Is the part of the program in which a variable may be accessed?

Your class, enum or getter methods.


Is the weight of 80 pineapples individual or variable?

variable


What is a structure variable in computer programming?

A structure variable is a name that refers to a data structure. For example: struct S {/*...*/}; int main (void) { S x; /* x is a structure variable that refers to an instance of the structure S */ // use x... return 0; }


What is the difference between individual and a variable?

An individual is a member of the population of interest. A variable is an aspect of an individual subject or object being measured.


What is the line called on a line graph that is the ratio of the change in the y-variable to the corresponding change in the x-variable?

The rise and the run.


On a line graph the ratio of the change in the y variable to the corresponding change in the x variable is called a lines what?

The rise and the run.