in C Plus Plus by
For inserting a new line in C++ program, which one of the following statements can be used?

a) \n

b) \r

c) \a

d) None of the above

▼ Show 1 Answer

0 votes

a) \n

To insert a new line or to jump on to the next line, one can use the "\n." In c++, there is also an alternative is available that is " endl," which is also used for breaking a line in the output. Let see the example of both the "\n" and "endl."

Learn More with Madanswer