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