Vidyalelo
C Programming · Q66

Structure and Union

Programming · C Programming · question 66

Q66

Which of the following is an incorrect syntax for pointer to structure? (Assuming struct tempint b;*my_struct;)

A.
*my_struct.b = 10;
Answer
B.
(*my_struct).b = 10;
C.
my_struct->b = 10;
D.
Both *my_struct.b = 10; and (*my_struct).b = 10;

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board