For the following C program struct { int x; int y; }abc; x cannot be accessed by the following 1) abc-->x; 2) abc[0]-->x; 3) abc.x; 4) (abc)-->x; A. 1, 2, 3 B. 2 & 3 C. 1 & 2 D. 1, 3, 4

Showing Answers 1 - 2 of 2 Answers

Naved

  • Oct 28th, 2005
 

i have a strong gut feeling that the answer to this question is D .. bcoz  i have not come across (abc)-> x which is in the option D hence goin by the options the only answer that suits here is D

  Was this answer useful?  Yes

darshan

  • Jun 27th, 2006
 

You can very well access by abc.x so options a b and d are automatically eliminated and hence the answer is c.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions