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",(void *)&x[i][j]);
  8. }
  9. putchar('\n');
  10. }
  11. putchar('\n');
  12.  
  13. for(int i=0;i<2;i++){
  14. for(int j=0;j<3;j++){
  15. printf("%lu",sizeof(x[i][j]));
  16. }
  17. putchar('\n');
  18. }
  19. return 0;
  20. }
  21.  
Success #stdin #stdout 0s 5308KB
stdin
Standard input is empty
stdout
0x7fffb524f2800x7fffb524f2840x7fffb524f288
0x7fffb524f28c0x7fffb524f2900x7fffb524f294

444
444