试题与答案

以下程序的输出结果是______。 #include <string.h> ma

题型:单项选择题

题目:

以下程序的输出结果是______。 #include <string.h> main() { char*a="abcdefghi";int k fun(a);puts(a); } fun(char*s) { int x,y; char c for(x=0,y=strlen(s)-1;x<y:x++,y--) {c=s[y];s[y]=s[x];s[x]=c;} }

A.ihgfedcba

B.abcdefghi

C.abcdedeba

D.ihgfefghi

答案:

参考答案:A

试题推荐
微信公众账号搜索答案