問題詳情

26. Which of the following code could not be used to ignore all remaining characters in the current input line?
(A) do {scanf("%c", &ch);} while (ch !='ln');
(B) do {ch = getchar();} while (ch !=' (n') ;
(C) while ((ch=getchar())!='In') ;
(D) while (getchar()!=' In') ;
(E) None of the above.

參考答案

答案:E
難度:計算中-1
書單:沒有書單,新增