On various occasions, you may need to clear the unwanted buffer so as to get the next input in the desired container and not in the buffer of the previous variable. In standard C/C++, streams are buffered, for example in the case of standard input, when we press the key on the keyboard, it isn’t sent to your program, rather it is buffered by the operating system till the time is allotted to that program. All standard input and output devices contain an input and output buffer. ISRO CS Syllabus for Scientist/Engineer ExamĪ temporary storage area is called a buffer.ISRO CS Original Papers and Official Keys.GATE CS Original Papers and Official Keys.