Computers and Technology

Suppose I define some structure type ( studentInfo), then I declare an instance of it and I decide to also create a pointer to the instance like so:

typedef struct{

int age;
char idNum[9];
}
studentInfo;

...Code continues...

struct studentInfo mainInfo, *pMain;
pMain = &mainInfo;

Which of the following options is functionally equivalent to:

a. (p*Main).age = 20;
b. *pMain. age = 20;
c. pMain. age = 20;
d. *(pMain. age) = 20;

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 13:20, mj200442
Raymond ozzie, the software designer who was critical in the development of lotus notes, was able to dictate the terms under which ibm acquired lotus. this illustrates that he had bargaining power based on the cost required by the firm to replace him.
Answers: 3
image
Computers and Technology, 22.06.2019 02:30, amaliabarrera9
The can be used to paste text in any order
Answers: 1
image
Computers and Technology, 22.06.2019 11:20, destinyleisantos
The kurt vonnegut commencement speech, the neiman-marcus chocolate chip cookie recipe, and the get-well emails to the dying boy are examples of select one: a. social engineering b. hoax emails c. email viruses d. worms
Answers: 1
image
Computers and Technology, 22.06.2019 18:30, Akkenson17871
The "instance" relationship shows that something is an object of a
Answers: 1
Do you know the correct answer?
Suppose I define some structure type ( studentInfo), then I declare an instance of it and I decide t...

Questions in other subjects:

Konu
Biology, 10.10.2019 20:50