What is the special escape sequence for newline in C++?

Thê Hy

New member
What is the special escape sequence for newline in C++?
A. ‘\b’
B. ‘\m’
C. ‘\n’
D. ‘\\’
 
Answer: C
Explanation: The newline character is used for shifting the cursor to the next line for any output to the monitor. It is mostly used for formatting output. During execution this escape sequence is converted to the OS Specific newline representation.
 

Tìm kiếm

Back
Top