Need help to understand one-line c code output
Please consider the following code
#include<stdio.h>
int 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("%u, %u, %u, %u\n", a, *a, **a, ***a);
return 0;
}
If I am not wrong a points to the position where array begins.So why a ,*a
,**a all three give same location?
No comments:
Post a Comment