+1 vote
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

1 Answer

0 votes
by

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."

Related questions

+2 votes
asked Jan 21, 2021 in C Plus Plus by SakshiSharma
+1 vote
asked Jul 16, 2019 in C Plus Plus by Indian
...