| |
GeekInterview.com > Placement Papers > TCS > C
| Print | |
Question: struct out { struct in{ char c;int d;}s1,*p1; }a1, *pa1;
pa1 = &a1; a1.p1 = &s1; Which is incorrect? a. a1.p1->c b. pa1->p1->c c. a1->p1 d. a1.s1.c
|
| February 02, 2007 07:35:36 |
#3 |
| naresh |
Member Since: Visitor Total Comments: N/A |
RE: struct out {struct in{ char c;int d;}s1,*p1;... |
hi frns the above one ans is c because a1 can hold only the value of s1 but not its address value........ abd more over p1 cant be hold by a1 so the a1 cant become pointer to p1 |
| |
Back To Question | |