Beginner C++
Q24 / 100

What does endl do?

Correct! Well done.

Incorrect.

The correct answer is B) Outputs a newline and flushes the output buffer

B

Correct Answer

Outputs a newline and flushes the output buffer

Explanation

endl inserts '\n' and calls flush(). Use '\n' for just a newline without flushing, which is faster in tight loops.

Progress
24/100