填空题
以下函数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
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
以下程序的功能是将字符串s中的数字字符放入d数组中,最后输出d中的字符串。例如,输入字符串:abc123edf456gh,执行程序后输出:123456。请填空。#include <stdio.h>#include <ctype.h>main( ){ char s[80], d[80]; int i,j;gets(s);for(i=j=0;s[i]!=’’ 0’’;i++)if(【 】) { d[j]=s[i]; j++; }d[j]=’’ 0’’;puts(d);}
点击查看答案
填空题
以下函数的功能是删除字符串s中的所有数字字符。请填空。viod dele(char *s){ int n=0,i;for(i=0;s[i];i++) if(【 】)s[n++]=s[i];s[n]=【 】;}
点击查看答案
相关试题
一个关系表的行称为【 】。
有以下程序void f( int y,int *x)...
以下程序的功能是计算:s=1+12+12...
设函数findbig( )已定义为求3个数中的...
以下程序运行后的输出结果是【 】。main(...