#include <stdio.h>
int main(int argc, char *argv[])
{
int size;
int *a;
scanf("%d",&size);/*输入的值要大于或等于2*/
a=(int*)malloc(sizeof(int)*size);
a[0]=1,a[1]=2;
printf("%d\n",size);
printf("a[0]=%d,a[1]=%d\n",a[0],a[1]);
return 0;
}
int main(int argc, char *argv[])
{
int size;
int *a;
scanf("%d",&size);/*输入的值要大于或等于2*/
a=(int*)malloc(sizeof(int)*size);
a[0]=1,a[1]=2;
printf("%d\n",size);
printf("a[0]=%d,a[1]=%d\n",a[0],a[1]);
return 0;
}
★★★★★为人民服务★★★★★