Question: 5. [4 Points) Multiple Choice: Circle all answers that apply 1. Which of the following accesses a variable in structure b? A. b->var; B. b.var;

5. [4 Points) Multiple Choice: Circle all answers that apply 1. Which of the following accesses a variable in structure b? A. b->var; B. b.var; C. *b.var; D. (*b).var; II. 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; III. Which of the following is a properly defined struct? A. struct {int a;}| B. struct a_struct {int a;} C. struct a_struct int a; D. struct a_struct {int a;}; IV. Which properly declares a variable of struct foo? A. struct foo; B. struct foo var; C. foo; D. int foo
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
