填空题
当运行以下程序时,输入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\n",str);insert(str);
【参考答案】
a*b*c*d*
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
以下程序运行后的输出结果是______。 main() int a=3,b=4,c=5,t=79; if(b<a&&a<c)t=a;a=c;c=t; if(a<c&&b<c)t=b;b=a;a=t; printf( %d%d%d n ,a,b,c);
点击查看答案&解析
填空题
以下程序的输出结果是______。 #include<stdio.h> void swap(int*a,int*b) int*t; t=a;a=b;b=c; main() int i=3,j=5,*p=&i,*q=&j; swap(p,q);printf( %d %d n ,*p,*q);
点击查看答案&解析
相关试题
以下程序的功能是:通过函数func输入字符并...
以下程序的输出结果是______。 #in...