fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int a[1][2];
  5. int b[2][1];
  6.  
  7. puts("配列の各要素のアドレス");
  8. for(size_t i=0;i<2;i++){
  9. for(size_t j=0;j<3;j++){
  10. printf("%p ",&a[1][2]);
  11. }
  12. putchar('\n');
  13. }
  14. putchar('\n');
  15.  
  16.  
  17.  
  18. return 0;
  19. }
  20.  
Success #stdin #stdout 0s 544KB
stdin
Standard input is empty
stdout
配列の各要素のアドレス
0x7ffd25ca8e50 0x7ffd25ca8e50 0x7ffd25ca8e50 
0x7ffd25ca8e50 0x7ffd25ca8e50 0x7ffd25ca8e50