Q247
What will be the output of the following C code? #include int main() int ary[4] = 1, 2, 3, 4; int *p = ary + 3; printf("%d %d ", p[-2], ary[*p]);
A.
2 3
B.
Compile time error
C.
2 4
D.
2 somegarbagevalue
AnswerAnswer: Option D
Solution
Answer: Option D
No explanation is given for this question Let's Discuss on Board