fork download
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5. int a[3] = {1,2,3};
  6.  
  7. for(int i=0; i<3; i++){
  8. printf("a[%d]のアドレス %p, \n", i, &a[i] );
  9. }
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0s 5320KB
stdin
Standard input is empty
stdout
a[0]のアドレス 0x7ffe1111132c, 
a[1]のアドレス 0x7ffe11111330, 
a[2]のアドレス 0x7ffe11111334,