Q174
What will be the output of the following C code? #include struct p int x; int y; ; int main() struct p p1[] = 1, 2, 3, 4, 5, 6; struct p *ptr1 = p1; printf("%d %d ", ptr1->x, (ptr1 + 2)->x);
A.
1 5
AnswerB.
1 3
C.
Compile time error
D.
1 4
Answer: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board