Which of the following is an incorrect syntax for pointer to structure?
(Assuming struct temp{int b;}*my_struct;)
(Assuming struct temp{int b;}*my_struct;)A. *my_struct.b = 10;
B. (*my_struct).b = 10;
C. my_struct->b = 10;
D. Both *my_struct.b = 10; and (*my_struct).b = 10;
Answer: Option A
Related Questions on Structure and Union
Which of the following can be a member of a structure?
A. Function
B. Another structure
C. Enumeration
D. All of the above

Join The Discussion