Home »
MCQs »
C++ MCQs
Which of the following object is also used to flush the stream?
35. Which of the following object is also used to flush the stream?
- cin
- cout
- cerr
- endl
Answer: D) endl
Explanation:
The "endl" object is used to print the newline as well as flush the stream.