填空题

以下程序的功能是:删除字符串中所有的空格。请填空。
#include<stdio.h>
main()
char s[100]="Our teacher teach C language!"; int i, j;
 for(i=j=0; s[i]!=’\0’; i++)
  if(s[i]!=’’) s[j]=s[i]; j++;
 s[j]=______;
 printf("%s\n", s);

答案: ’\0’(或0)
题目列表

你可能感兴趣的试题

填空题

如图所示二叉树的后序遍历的结果为______。

答案: EDBGHFCA
填空题

软件是______ 、数据和文档的集合。

答案: 程序
微信扫码免费搜题