题目内容
(请给出正确答案)
[主观题]
下面程序的运行结果是【 】。 include<stdio.h> define SIZE 12 main() { char s[SI
下面程序的运行结果是【 】。 include<stdio.h> define SIZE 12 main() { char s[SIZE]; int I;for(I=0;I<SIZE;I++) s[I]=′A′+I+321; sub(s,7,SIZE-1); for(I=0;I<SIZE;I++) printf("%c",s[I]); printf("\n");} sub(char*a,int t1,int t2) { char ch; while (t1<t2) { ch=*(a+t1); *(a+t1)=*(a+t2); *(a+t2)=ch; t1++;t2--; } }
查看答案
如果结果不匹配,请 联系老师 获取答案