填空题
以下函数sstrcat()的功能是实现字符串的连接,即将t所指字符串复制到s所指字符串的尾部。例如:s所指字符串为abcd,t所指字符串为efgh,函数调用后s所指字符串为abcdefgh。请填空。 #include <string.h> void sstrcat(char *s,char *t) {int n; n=strlen(s); while(*(s+n)=【 】{s++;t++;} }
【参考答案】
*t
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
有以下程序void f( int y,int *x){ y=y+*x; *x=*x+y;} main( ){ int x=2,y=4; f(y,&x); printf(“%d %d n”,x,y);} 执行后输出的结果是【 】。
点击查看答案
填空题
有以下程序:#include<stdio.h>main( ){ char c;while( (c=getchar( ) )!=’’’’) putchar(- - c);}程序运行时,如果从键盘输入Y N<回车>,则输出结果为【 】。
点击查看答案
相关试题
以下程序运行后的输出结果是【 】。int f...