输入10个整数,把后5个数移到前面,把原来前面的5个数移动到后5个的位置...答:{ void shift(int *x,int);int a[10],*p,i,m;p=a;for(i=0;i<10;i++)scanf("%d",p++);//输入10个数 scanf("%d",&m);//输入移动的位数 p=a;shift(p,m);for(i=0;i<10;i++,p++)printf("%3d,",*p);//输出这10位数 } void shift(int *x,int m)//把m传来嘛。