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