Select a proper sentinel value if we want users to enter students’ grades.
查看答案
How to enter the EOF mark?
A. Press Ctrl+Z (in Windows) or Ctrl+D (Mac/Linux).
B. Enter “EOF” in the terminal.
C. Enter “^Z” or “^D”.
On success, the scanf() function will return _____.
A. The length of the input string.
B. The number of input characters.
C. The number of input items successfully processed.
D. The number of total items presented in the control sequence.
The continue statement can be used within ( ) statements.
A. if
B. do
C. do-while
D. for
When the number of data items to input cannot be determined in advance, we can use the sentinels to signal the end of a data series.
A. 对
B. 错