#include <stdio.h>
#include <stdlib.h>
int main(void) {
double* a;
a
= (double*)malloc(sizeof(double)*5); // ここまでで、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+CiNpbmNsdWRlIDxzdGRsaWIuaD4KCmludCBtYWluKHZvaWQpIHsKCWRvdWJsZSogYTsKCWEgPSAoZG91YmxlKiltYWxsb2Moc2l6ZW9mKGRvdWJsZSkqNSk7CgkvLyDjgZPjgZPjgb7jgafjgafjgIFkb3VibGXlnovjga7phY3liJfvvIjplbfjgZU177yJ44GM44Gn44GN44Gf44CCCglmb3IoaW50IGk9MDtpPDU7aSsrKXsKCQlhW2ldPShkb3VibGUpaS8xMC4wOwoJfQoJCglmb3IoaW50IGk9MDtpPDU7aSsrKXsKCXByaW50ZigiYVslZF3jga7jgqLjg4njg6zjgrnjga8gJXBcbiIsaSwmKGFbaV0pKTsKCXByaW50Zigi44Gd44Gu5Lit6Lqr44GvICVsZlxuIixhW2ldKTt9CglyZXR1cm4gMDsKfQo=