What is a buffer in c++?

Hello and happy new year :slight_smile:

While going through some of the solutions to problems on CodeChef, I noticed that in most of the solutions(C++) a buffer is used. Could anyone please explain to me as to what a buffer actually is and when is it used. What role does it play in increasing the IO speed?



@vigonoid: HAPPY NEW YEAR -_-

You can find about buffer in the following links:

  1. link1

  2. link2

1 Like

Thanks squal :slight_smile: