Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

C Programming 5. [4 Points] Multiple Choice: Circle all answers that apply I. Wh

ID: 3709058 • Letter: C

Question

C Programming

5. [4 Points] Multiple Choice: Circle all answers that apply I. Which of the following accesses a variable in structure b? A. b->var B. b.var; C. *b.var; D. (*b).var; I Which of the following accesses a variable in a pointer to a structure, *b? A. b->var B. b.var; C. *b.var; D. (*b).var; Which of the following is a properly defined struct? A. struct fint a; B. struct a_struct fint a;) C. struct a_struct int a; D. struct a_struct int a; III. Which properly declares a variable of struct foo? A. struct foo; B. struct foo var; C. foo; D. int foo; IV.

Explanation / Answer

I.

B. b.var;

II.

A. b->var;

III.

D. struct a_struct{int a;};

IV.

B. struct foo var;