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