Important MCQ

The escape sequence for a new line is

Q.The escape sequence for a new line is

A) \\
B) \b
C) \n
D) \t
Correct Answer:
Option C
Detailed Explanation:
C) \n 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.