Top

Discussion

Which of the following are incorrect syntax for pointer to structure?

(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: A

No answer description available for this question

No comment is present. Be the first to comment.
Loading…

Post your comment