Computer Science, asked by me777, 1 year ago

WHAT IS A FLUSHING STREAM

Answers

Answered by MrPerfect0007
1
HEYYA FRND.
___________

FLUSHING STREAM

When you flush the stream, you compel the contents of the output stream to use the OS through the default output medium.

The word stream is an abstract of a build that allows you to send or receive an unknown number of bytes. In some points in a program, the output stream is flushed automatically, flushing is not always necessary.

To reduce overhead and improve performance, a stream buffers its contents and only "flashes" from time to time.

Examples of streams are cin (std :: cin) and cout (std :: cout) Which are the input and output stream. "std :: cin" is a buffer to store input data, while "std :: cout's" buffer is used to store data that is being sent to the screen

THANK YOU

@SRK6
Similar questions