Which of the following statements about character input is false?

A. Characters can be read or written only to the standard streams.
B. getchar reads the next character from the standard input stream.
C. fgetc can read a character from the standard input stream or a user-specified stream.
D. For technical reasons, fgetc is preferred over getc.
E. ungetc pushes a character back into the input stream.


Answer: A

Computer Science & Information Technology

You might also like to view...

Which of the following are common spectrum analyzer measurements?

A. current B. modulation C. attenuation D. distortion

Computer Science & Information Technology

What is the output of the following Java code?int[] list = {0, 5, 10, 15, 20};for (int j = 0; j < 5; j++)    System.out.print(list[j] + " "); System.out.println();

A. 0 1 2 3 4 B. 0 5 10 15 20 C. 0, 5, 10, 15, 20 D. 0 5 10  15

Computer Science & Information Technology

A template is a special file type that identifies multiple workbooks and remembers the manner in which the workbooks should be arranged

Indicate whether the statement is true or false

Computer Science & Information Technology

What is the value in w after line 5 is run?

``` 1 string s, t; 2 s = “Get up and go to school!”; 3 t = “NO!”; 4 int n = s.size(); 5 int w = s.at(3); 6 int x = s.at(12); 7 s += t; 8 cout << s; ``` A. 3 B. t C. space ‘ ‘ D. u

Computer Science & Information Technology