Can anyone explain to me what a double buffer is? And how to code it in console mode? Example, please .

I was checking in MSDN on WriteConsoleOutput function which I think is very useful for printing on the screen everything at once but I don't know how to use. I would be grateful for an example.

Thank you in advance.