#include <stdio.h>
#include <stdlib.h>
int main(void) {
int* a;
a
= (int*)malloc(sizeof(int)*4); // ここまでで、int型の配列(長さ4)ができた。
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+CiNpbmNsdWRlIDxzdGRsaWIuaD4KCmludCBtYWluKHZvaWQpIHsKCWludCogYTsKCWEgPSAoaW50KiltYWxsb2Moc2l6ZW9mKGludCkqNCk7CgkvLyDjgZPjgZPjgb7jgafjgafjgIFpbnTlnovjga7phY3liJfvvIjplbfjgZU077yJ44GM44Gn44GN44Gf44CCCglhWzBdPTA7CglhWzFdPTE7CglhWzJdPTI7CglhWzNdPTM7CgkKCXByaW50ZigiYVswXeOBruOCouODieODrOOCueOBryAlcFxuIiwmKGFbMF0pKTsKCXByaW50Zigi44Gd44Gu5Lit6Lqr44GvICVkXG4iLGFbMF0pOwoJCglwcmludGYoImFbMV3jga7jgqLjg4njg6zjgrnjga8gJXBcbiIsJihhWzFdKSk7CglwcmludGYoIuOBneOBruS4rei6q+OBryAlZFxuIixhWzFdKTsKCglwcmludGYoImFbMl3jga7jgqLjg4njg6zjgrnjga8gJXBcbiIsJihhWzJdKSk7CglwcmludGYoIuOBneOBruS4rei6q+OBryAlZFxuIixhWzJdKTsKCglwcmludGYoImFbM13jga7jgqLjg4njg6zjgrnjga8gJXBcbiIsJihhWzNdKSk7CglwcmludGYoIuOBneOBruS4rei6q+OBryAlZFxuIixhWzNdKTsKCQoJcmV0dXJuIDA7Cn0K