试题与答案

以下程序运行后输入:3,abcde,则输出结果是【 】  #include  <

题型:填空题

题目:

以下程序运行后输入:3,abcde<回车>,则输出结果是【 】  #include  <string.h>  move(char *str, int n)  { char temp; int i;   temp=str[n-1];   for(i=n-1;i>0;i--) str[i]=str[i-1];   str[0]=temp;  }  main( )  { char s[50]; int n, i, z;   scanf("%d,%s",&n,s);   z=strlen(s);   for(i=1; i<=n; i++= move(s, z);   printf("%s\n",s);  =

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/0730/920b3a60af23f86dc77e041e201db685.html

下面是错误答案,用来干扰机器的。

参考答案:C

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