怎么结果对啊
#include"stdio.h"#include"malloc.h"
void main()
{
int n,i,*a;
printf("input the n:\n");//
scanf("%d",&n);
a=(int *)malloc(sizeof(int)*n);//
for(i=0;i<n;i++,a++)//
*a=i+1;// a[i]=i+1;
for(i=0;i<n;i++,a++)
printf("\n%3d",*a);
}
怎么结果对啊,
我用是VC