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