itssmookie7730 itssmookie7730
  • 21-09-2019
  • Computers and Technology
contestada

The operation:

pStruct -> member

is equivalent to



A. (*pStruct).member

B. &pStruct.member

C. *pStruct.member

D. (&pStruct).member

Respuesta :

Branta Branta
  • 23-09-2019

Answer:

A. (*pStruct).member

Explanation:

pStruct corresponds to a pointer to a structure datatype.

So to get a reference to the actual structure data, we need to dereference the pointer using the * operator. This can be done using (*pStruct).

Now we need to access a field of the structure called member. This can be done using the dot notation. So the syntax for accessing the field 'member' will correspond to:

(*pStruct).member

Answer Link

Otras preguntas

b) An electric refrigerator rated 400W operates 8 hour /day. What is the cost of the energy to operate it for 30 days at Rs 3.00 per kWh ?
A car is traveling with a velocity of 40 m/s and has a mass of 1120 kg. The car has ___________energy. Calculate it.
What did the Framers of the Constitution believe regarding the ideal size of government for preventing what they viewed as the worst inequality? a. The Framers
Given 11 different natural numbers, none greater than 20. Prove that two of these can be chosen, one of which divides the other.
-2x + 4x = -4 + 0 What is the answer?
What is an equation of the line that passes through the point (-4, -7) and is parallel to the line 3x-Y = 4?
Will mark you brainliest!
A disinfectant spray bottle say it eliminates 90% of bacteria with each application. You apply the disinfectant once to a countertop in the shipping department
y=2 + x; use x= 1, and y= 2
How are anatomy and physiology the same?