Question
Programming and Data Structure Question on Programming in C
What will be the output of the following program assuming that the array begins at location 1002?
#include<stdio.h>
void main()
{int a[2] [3] [4] ={ {1,2,3,4,5,6,7,8,9,1,1,2,}, {2,1,4,7,6,7,8,9,0,0,0,0}};
printf("/n%u%u%u %d", a, *a, **a, ***a);
A
1002 1002 1004 1
B
1002 1004 1006 1
C
1002 1004 1004 1
D
1002 1002 1002 1.
Answer
1002 1002 1002 1.
Explanation
Solution
The correct option is(D): 1002 1002 1002 1