fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4.  
  5. char a[3];
  6. double b;
  7. int c[2];
  8.  
  9. for(int i = 0;i < 3;i ++){
  10. printf("a[%d]のアドレス : %p\n",i,&a[i]);
  11. }
  12. printf("bのアドレス : %p\n",&b);
  13. for(int j = 0;j < 2;j ++){
  14. printf("c[%d]のアドレス : %p\n",j,&c[j]);
  15. }
  16.  
  17. return 0;
  18. }
  19.  
Success #stdin #stdout 0s 5320KB
stdin
Standard input is empty
stdout
a[0]のアドレス : 0x7ffeb2f5ca65
a[1]のアドレス : 0x7ffeb2f5ca66
a[2]のアドレス : 0x7ffeb2f5ca67
bのアドレス : 0x7ffeb2f5ca50
c[0]のアドレス : 0x7ffeb2f5ca5c
c[1]のアドレス : 0x7ffeb2f5ca60