Files and Streams Flashcards

1
Q

What command is used to get user input from the command line?

A

scanf()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a stream?

A

It is an abstraction of a file that provides a constant interface to the programmer.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does the a stream being buffered mean?

A

Data is not necessarily written to the device when the write command is used and it can be forced to write by flushing the buffer.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly