单选题:设有定义“chars[8];inti=0;”,下列不能将一行(不超过80个字符)带有空格的字符国正确读入的语句或语句组是

  • 题目分类:C++
  • 题目类型:单选题
  • 查看权限:VIP
题目内容:
设有定义“chars[8];inti=0;”,下列不能将一行(不超过80个字符)带有空格的字符国正确读入的语句或语句组是(  )。 A.gets(s);
B.while((s[i++]=getchar(  ))!='\n');s[i]='\0';
C.seanf("%S",s);
D.do{scanf("%C",&s[i]);}while(s[i++]!='\n');s[i]='\0';

参考答案:
答案解析:

Which of the following arguments does the author want to ma

Which of the following arguments does the author want to make?A.Money is all th

查看答案

What does the man ask the woman to do?

What does the man ask the woman to do?A.To park the Car elsewhere. B.To drive al

查看答案

We know from the text that_________.

We know from the text that_________. A.Frank couldn’t decide which Car to buy.

查看答案

Chan wants to open up new businesses abroad.

Chan wants to open up new businesses abroad. A.Right B.Wrong C.Doesn’t Say

查看答案

有下列程序: #include<stdi0.h>voidfun(int*S,intn1,intn2){inti,j,t;

有下列程序: #includevoidfun(int*S,intn1,intn2){inti,j,t; i=n1;j=n2whil

查看答案