fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int a[1][2];
  5. int b[2][1];
  6. for(int i=0;i<1;i++){
  7. for(int j=0;j<2;j++){
  8. printf("%lu,%p\n",sizeof(a[i][j]),&a[i][j]);
  9. }
  10. }
  11. for(int i=0; i<2; i++){
  12. for(int j=0; j<1; j++){
  13. printf("%lu,%p\n",sizeof(b[i][j]),&b[i][j]);
  14. }
  15. }
  16. return 0;
  17. }
  18.  
Success #stdin #stdout 0s 5280KB
stdin
Standard input is empty
stdout
4,0x7fffc95aba18
4,0x7fffc95aba1c
4,0x7fffc95aba20
4,0x7fffc95aba24