Question PRG-C-0063
HardWhat is the output of this program?
#include <stdio.h>
int main() {
int a[2][3] = {{1, 2, 3}, {4, 5, 6}};
int (*p)[3] = a;
printf("%d %d %d", *(*(p + 1) + 2), **p, *(p[0] + 1));
return 0;
}
- A.
6 4 2
- B.
3 1 2
- C.
Sign up free to see the answer and a step-by-step explanation.