Page 1 of 1

Which of the following is an incorrect syntax for pointer to structure?

Posted: Wed Jul 13, 2022 7:54 pm
by answerhappygod
(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;