填空题
当运行以下程序时,输入abcd,程序的输出结果是:______。
insert(char str[])
int i;
i=strlen(str);
while(i>0)
str[2*i]=str[i];str[2*i-1]=’*’;i--;
printf("%s\n",str);
main()
char str[40];
scanf("%s",str);insert(str);
【参考答案】
a*b*c*d*
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
以下程序运行后的输出结果是______。 int f(int a[],int n) if(n>=1)return f(a,n-1)+a[n-1]; else return 0; main() int aa[5]=1,2,3,4,5),s; s=f(aa,5);printf( %d n ,s);
点击查看答案&解析
填空题
以下程序的输出结果是______。 #include<stdlib.h> main() char*s1,*s2,m; s1=s2=(char*)malloc(sizeof(char)); *s1=15; *s2=20; m=*s1+*s2: printf( %d n ,m);
点击查看答案&解析
相关试题
以下程序运行后的输出结果是______。...
以下程序中函数huiwen的功能是检查一个字符...