填空题
以下sstrcpy()函数实现字符串复制,即将t所指字符串复制到s所指向内存空间中,形成一个新的字符串s。请填空。
void sstrcpy(char *s,char *t)
while(*s++=______);
main()
char str1[100],str2[]="abcdefgh";
sstrcpy(str1,str2);
printf("%s\n",str1);
【参考答案】
*t++或*(t++)
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
以下函数的功能是计算s=1+1 2!+1 3!+……+1 n!,请填空。 double fun(int n) double s=0.0,fac=1.0; int i; for(i=1,i<=n;i++) fac=fac______; s=s+fac; return s;
点击查看答案&解析
填空题
下面程序的运行结果是______。 void swap(int *a,int *B) int *t; t=a; a=b; b=t; main() int x=3,y=5,*p=&x,*q=&y; swap(p,q); printf( %d %d n ,*p,*q);
点击查看答案&解析
相关试题
以下程序从终端读入数据到数组中,统计其中...
以下sum函数的功能是计算下列级数之和。请...
下面程序的运行结果是______。 type...