用c语言编程:给定数组 int String[10]={0,1,2,3,4,5,6,7,8,9};输入...答:include<iostream.h> void change(int *n, int len){ int a, *p= &a;for(int i= 0; i < len/2; i++){ p= *(n+i);(n+i)= *(n+len-1-i);(n+len-1-i)= *p;} } void main(){ int a[10]={1,2,3,4,5,6,7,8,9,10};change(a, 10);for(int i= 0; i...
c语言编程题,希望有详细解析答:include <stdio.h> main (){ int x,i,a[11]= {1,5,6,7,13,22,27,37,38,45};scanf("%d",&x);for (i=9; i>-1&&a[i]>x; i--) //i不越界,且a[i]>x时把a[i]后移一位 a[i+1]=a[i];a[i+1]=x; //把x放到正确的位置 for(i=0; i<11; i++)printf...