#include <stdio.h>
#include <stdlib.h>
int main(void) {
double *a;
a
= (double*)malloc(sizeof(double)*5); for(int i=0; i<5; i++){
a[i]=(double)i/10.0;
}
a[0]=0;
a[1]=1;
a[2]=2;
a[3]=3;
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+CiNpbmNsdWRlIDxzdGRsaWIuaD4KCmludCBtYWluKHZvaWQpIHsKCWRvdWJsZSAqYTsKCWEgPSAoZG91YmxlKiltYWxsb2Moc2l6ZW9mKGRvdWJsZSkqNSk7Cglmb3IoaW50IGk9MDsgaTw1OyBpKyspewoJCWFbaV09KGRvdWJsZSlpLzEwLjA7Cgl9CglhWzBdPTA7CglhWzFdPTE7CglhWzJdPTI7CglhWzNdPTM7CgkKCXByaW50ZigiYVswXeOBruOCouODieODrOOCueOBryAlcFxuIiwmKGFbMF0pKTsKCXByaW50Zigi44Gd44Gu5Lit6Lqr44GvICVkXG4iLGFbMF0pOwoJCglwcmludGYoImFbMV3jga7jgqLjg4njg6zjgrnjga8gJXBcbiIsJihhWzFdKSk7CglwcmludGYoIuOBneOBruS4rei6q+OBryAlZFxuIixhWzFdKTsKCglwcmludGYoImFbMl3jga7jgqLjg4njg6zjgrnjga8gJXBcbiIsJihhWzJdKSk7CglwcmludGYoIuOBneOBruS4rei6q+OBryAlZFxuIixhWzJdKTsKCglwcmludGYoImFbM13jga7jgqLjg4njg6zjgrnjga8gJXBcbiIsJihhWzNdKSk7CglwcmludGYoIuOBneOBruS4rei6q+OBryAlZFxuIixhWzNdKTsKCQoJcmV0dXJuIDA7Cn0K