[填空题] 以下程序用以删除字符串所有的空格,请填空。 #include <stdio.h> main() char s[100]= "Our teacher teach C lan
11 查阅
[填空题] 以下程序用以删除字符串所有的空格,请填空。
#include <stdio.h>
main()
char s[100]= "Our teacher teach C language!");int i,j;
for(i=j=0;s[i]!=’’;i++)
if(s[i]!=’’)s[j]=s[i];j++;
s[j]=______;
printf("%s",s);
参考答案: