填空题
下列程序的功能是将字符串s中所有的字符c删除。请填空。
#include<stdio.h>
main()
char s[80];
int i,j;
gets(s);
for(i=j=0;s[i] !=’\0’;i++)
if(s[i] !=’c’)______;
s[j]=’\0’;
puts(s);
【参考答案】
s[j++]=s[i]
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
C语言用于结构化程序设计的3种基本结构是______、选择结构和循环结构。
点击查看答案&解析
填空题
下列程序的输出结果是______。 #include<stdio.h> main() int x=1,y=1,a=1,b=1; switch(x) case 1: switch(y) Case0:a++;break; case 1:b++;break; case2: a++;b++;break; printf( a=%d,b=%d n ,a,b);
点击查看答案&解析
相关试题
下列程序的运行结果是______。 #in...
若有定义float b[15],*p=b;,且数...
设有下列宏定义:#define A 2 #defin...
“printf( %d n ,strlen( t 02...