#include <stdio.h>
int main(void) {
double* a;
a
= (double *)malloc(sizeof(double)*5); for(int i=0;i<5;i++){
a[i]=(double)i/10.0;
}
for(int i=0;i<5;i++){
printf("a[%d]のアドレスは %p\n", i
,&(a
[i
])); }
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKSB7Cglkb3VibGUqIGE7CglhID0gKGRvdWJsZSAqKW1hbGxvYyhzaXplb2YoZG91YmxlKSo1KTsKCWZvcihpbnQgaT0wO2k8NTtpKyspewoJCWFbaV09KGRvdWJsZSlpLzEwLjA7Cgl9CgoJZm9yKGludCBpPTA7aTw1O2krKyl7CgkJcHJpbnRmKCJhWyVkXeOBruOCouODieODrOOCueOBryAlcFxuIiwgaSwmKGFbaV0pKTsKCQlwcmludGYoIuOBneOBruS4rei6q+OBryAlbGZcbiIsIGFbaV0pOwoJfQoJcmV0dXJuIDA7Cn0K