Explantion:The a_struct is declared as structure name and its data element is a. 10. Which of the following accesses a variable in structure *b?
A. b->var;
B. b.var;
C. b-var;
D. b>var;
Answer:A
Explantion:The a_struct is declared as structure name and its data element is a. 10. Which of the following accesses a variable in structure *b?
A. b->var; B. b.var; C. b-var; D. b>var;
Explanation:Because in a structure pointer, the data element is declared as above only. Sanfoundry Global Education & Learning Series – C++ Programming Language.