这个程序怎么输出值,囧
#include<stdio.h>#include<stdlib.h>
int main(void)
{
int *valiable_array=NULL;
int size=0;
char buf[256];
int i;
while(fgets(buf,256,stdin)!=NULL){
size++;
valiable_array=realloc(valiable_array,sizeof(int)*size);
sscanf(buf,"%d",&valiable_array[size-1]);
}
for(i=0;i<size;i++){
printf("valiable_array[%d]..%d\n",i,valiable_array[i]);
}
return 0;
}