-
Which of the following is an incorrect syntax for pointer to structure?
(Assuming struct test{int n;}*ptr_struct;)
-
- (*ptr_struct).n = 110;
- ptr_struct->n = 110;
- *ptr_struct.n = 110;
- Both (*ptr_struct).n = 110; and *ptr_struct.n = 110;
- None of these
Correct Option: C
*ptr_struct.n = 110; is an incorrect syntax for pointer to structure.