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("%p ",&a[i][j]);
  9. }
  10. }
  11. for(int i=0;i<2;i++){
  12. for(int j=0;j<1;j++){
  13. printf("%p ",&b[i][j]);
  14. }
  15. }
  16. return 0;
  17. }
Success #stdin #stdout 0s 5304KB
stdin
Standard input is empty
stdout
0x7ffc48afd868 0x7ffc48afd86c 0x7ffc48afd870 0x7ffc48afd874