填空题
下列程序的功能是将字符串s中所有的字符C删除。请填空。
#include<stdio.h>
main()
char s[80];
int i,j;
gets(s);
for(i=j=0;s[i]!="\0";i++)
if([i]!=’C’)______;
s[j]=’\0’;
puts(s);
【参考答案】
s[j++]=s[i]。
热门
试题
填空题
以下程序运行后的输出结果是______。 main() int a[4][4]=1,2,3,4,5,6,7,8,11,12,13,14,15,16,17,18; int i=0,j=0,s=0, while(i++<4) if(i==2 || i==4) continue ; J=0; do(s+=a[i][j]; j++; )while (j<4); printf( %d n ,s);