#include <stdio.h>
#include <stdlib.h>
int main(void) {
double* a;
int i;
a
= (double*)malloc(sizeof(double)*5); // ここまでで、int型の配列(長さ4)ができた。
for(i = 0; i < 5; i++){
a[i]=(double)i/10;
printf("a[%d]のアドレスは %p\n",i
,&(a
[i
])); }
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KCmludCBtYWluKHZvaWQpIHsKCWRvdWJsZSogYTsKCWludCBpOwoJYSA9IChkb3VibGUqKW1hbGxvYyhzaXplb2YoZG91YmxlKSo1KTsKCS8vIOOBk+OBk+OBvuOBp+OBp+OAgWludOWei+OBrumFjeWIl++8iOmVt+OBlTTvvInjgYzjgafjgY3jgZ/jgIIKCWZvcihpID0gMDsgaSA8IDU7IGkrKyl7CgkJYVtpXT0oZG91YmxlKWkvMTA7CgkJcHJpbnRmKCJhWyVkXeOBruOCouODieODrOOCueOBryAlcFxuIixpICwmKGFbaV0pKTsKCQlwcmludGYoIuOBneOBruS4rei6q+OBryAlbGZcbiIsYVtpXSk7Cgl9CgoJCglyZXR1cm4gMDsKfQo=