black

登录

单项选择题

下面程序的功能是从键盘输入一行字符,统计其中有多少个单词,单词之间用空格分 隔。请分析程序填空。 #include <stdio.h> main() {char s[80],c1,c2=’ ’; int i=0,num=0; gets(s); while(s[i]!=’/0’) {c1=s[i]; if( 所填选项 ) num++; i++; c2=c1; } printf("There are %d words./n",num); }
A、A)c1==’ ’&&c2==’ ’
B、B)c1!=’ ’&&c2==’ ’
C、C)c1==’ ’&&c2!=’ ’
D、D)c1!=’ ’&&c2!=’ ’

A.h>
B./n",num);
相关考题

未知题型 P151,4-24

单项选择题 以下内容属于“清扫”的是()

未知题型 Osborne works as the sports editor for his college yearbook, The Tailsman. He’s written sports for WKU’s The Sporting Times and worked at WBKO Television in Bowling Green, Ky. as a video editor. Osborne has also worked with a sports marketing team.

All Rights Reserved 版权所有©求知题库网库(csqiuzhi.com)

备案号:湘ICP备14005140号-1

经营许可证号:湘B2-20140064