填空题
以下程序运行后的输出结果是______。 #include <string.h> main() { char ch[]="abc",x[3][4]; int i; for(i=0; i<3;i++) strcpy(x[i],ch); for(i=0;i<3;i++) printf("%s",&x[i][i]); printf("\n"); }
【参考答案】
abcbcc
点击查看答案
<上一题
目录
下一题>
热门
试题
填空题
以下函数把b字符串连接到a字符串的后面,并返回a中新字符串的长度。请填空。surcen(chara[],char b[]){ int num=0,n=0;while(*(a+num)!=______)num++;while(b[n]){*(a+num)=b[n];num++;______;}return(num);} _’ o’或0
点击查看答案
填空题
下列程序的字符串中各单词之间有一个空格,则程序的输出结果是______。#include <string.h>main(){ char strl[]= How do you do , *p1=strlstrcpy(strl+strlen(strl) 2, es she ):printf( %s n ,p1):}
点击查看答案
相关试题
下列程序的功能是:将字符数组a中下标值为...