Lately, I was understanding what exactly buffering
is. And I read that cout
is buffered. So I got confused. What does it mean that cout
is buffered? In general, what does it mean when someone says that something is buffered? And what does flushing the streams(cout/buffer) mean?
Any example tagged with the answer would be appreciated :)
Asked
Active
Viewed 89 times
1

ibrabbit
- 43
- 5
1 Answers
2
Here's a related post: Is std::cout buffered?
And here's an article that talks about it in more detail: https://www.programmingincpp.com/flush-the-output-stream-buffer.html

Jonathan Lane-Smith
- 58
- 8
-
1Thank you so very much, I was struggling to grasp the whole scene happening internally, and now its as clear as crystal. – ibrabbit Sep 20 '19 at 02:50