Important MCQ

Which one prints a new line?

Q.Which one prints a new line?

A) line
B) endl
C) newl
D) end
Correct Answer:
Option B
Detailed Explanation:
B) endl is correct. cout is an ostream object used for screen output with the insertion operator <<. Quoted text is printed literally, expressions are evaluated, and endl or \n starts a new line.