I have declared two dimensional array. I want to print array element and address of array element
I wrote program here
1Code:#include<stdio.h> void main() { int i, j; int array[2][4]={1, 2, 3, 4, 5, 6, 7, 8}; for ( i=0; i<2; i++) for ( j=0; j<4; j++) printf("%d\n", array[i][j]); printf("%p\n", &array[i][j]); }
2
3
4
5
6
7
8
0061FF38
why program is not showing all the memory allocation ?