fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int x[2][3]={{1,2,3},{4,5,6}};
  5. for(int i=0;i<2;i++){
  6. for(int j=0;j<3;j++)
  7. printf("%p\n",&x[i][j]);
  8. }
  9. for(int i=0;i<2;i++){
  10. for(int j=0;j<3;j++)
  11. printf("%lu\n",x[i][j]);
  12. }
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0s 5280KB
stdin
Standard input is empty
stdout
0x7ffd29077450
0x7ffd29077454
0x7ffd29077458
0x7ffd2907745c
0x7ffd29077460
0x7ffd29077464
1
2
3
4
5
6