填空题
以下函数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
热门
试题
填空题
以下程序的输出结果是【 】。int fun(int *x,int n){if(n=0) return x[0];else return x[0]+fun(x+1,n-1);}main( ){int a[]={1,2,3,4,5,6,7};printf( %d\n ,fun(a,3));}