トップ
おなかすいた族!
int *data; data = malloc(sizeof(int) * 必要な要素数); data[i] = 10; data = realloc(data,sizeof(int) * 必要な要素数);//要素数を増やす free(data);