1.

What will be the output of the program?_x000D_ #include_x000D_ _x000D_ int main()_x000D_ {_x000D_ int arr[2][2][2] = {10, 2, 3, 4, 5, 6, 7, 8};_x000D_ int *p, *q;_x000D_ p = &arr[1][1][1];_x000D_ q = (int*) arr;_x000D_ printf("%d, %d\n", *p, *q);_x000D_ return 0;_x000D_ }

A. 8, 10
B. 10, 2
C. 8, 1
D. Garbage values
Answer» B. 10, 2


Discussion

No Comment Found