CAN YOU PLEASE EXPLAIN ME WHAT IS INPUT BUFFER AND OUTPUT BUFFER?
INPUT/OUTPUT BUFFER DOUBT
What is a buffer?
A temporary storage area is called buffer. All standard input and output devices contain an input and output buffer. In standard C/C++, streams are buffered, for example in the case of standard input, when we press the key on keyboard, it isn’t sent to your program, rather it is buffered by operating system till the time is allotted to that program.
Input/output (I/O) buffering is a mechanism that improves the throughput of input and output operations. It is implemented directly in hardware and the corresponding drivers and is also ubiquitous among programming language standard libraries.
An output buffer is the location in [memory] or [cache] where data that is ready to be seen is held until the display device is ready.
Ohk, thanks…