下面程序输出的结果是()
#include
main()
{chara[]="ABCDEFG",k,*p;
fun(a,0,2);fun(a,4,6);
prinff("%s\n",a);
}
fun(char*s,intpl,intp2)
{charc;
while(pl
s[p2]=c;pl++;p2--;
}
}
A.ABCDEFG B.DEFGABC C.GFEDCBA D.CBADGFE正确答案D
下面程序输出的结果是()
#include
main()
{chara[]="ABCDEFG",k,*p;
fun(a,0,2);fun(a,4,6);
prinff("%s\n",a);
}
fun(char*s,intpl,intp2)
{charc;
while(pl
s[p2]=c;pl++;p2--;
}
}
A.ABCDEFG B.DEFGABC C.GFEDCBA D.CBADGFE正确答案D