Programming Languages C++ Objective
Mar 19, 2013

Regarding the use of  new line character (/n) and endl manipulator with cout statement.

Choose the correct answer:
A) Both ways are exactly same
B) Both are similar but endl additionally performs flushing of buffer
C) endl can’t be used with cout
D) \n can’t be used with cout
Detailed Explanation

Option B is the right answer.

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback