fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4.  
  5. int a[1][2];
  6. int b[2][1];
  7.  
  8. for(int i=0; i<2; i++) printf("&a[0][%d] = %p\n", i, (void*)&a[0][i]);
  9.  
  10. for(int j=0; j<2; j++) printf("&b[%d][0] = %p\n", j, (void*)&b[j][0]);
  11.  
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0s 544KB
stdin
Standard input is empty
stdout
&a[0][0] = 0x7ffc830cd148
&a[0][1] = 0x7ffc830cd14c
&b[0][0] = 0x7ffc830cd150
&b[1][0] = 0x7ffc830cd154