0

What happens if you don't put endl?

18th Dec 2015, 2:52 AM
Corbin
6 Respostas
+ 1
endl stands for "end line" and does just that. Always remember to use << before endl to end a line. With /n you do not have to use << before it.
7th Jul 2016, 3:51 PM
Rahul Jayakumar
Rahul Jayakumar - avatar
+ 1
statement will be continued on same line. endl is used to make your output on new line
3rd Nov 2016, 9:23 AM
Syed Hasi
Syed Hasi - avatar
0
endl is used to shift to new line. you can either use /n to shift to a new line. if you dont use this u will get the information in same line
19th Dec 2015, 2:53 PM
Abhi Ram
Abhi Ram - avatar
0
it'll continue printing in the same line
13th Jan 2016, 8:36 AM
favio dominguez
0
You can use \n just inside a string. Use endl when you don't want the whole string on one line.
11th Jun 2016, 3:36 AM
gerry copperland
gerry copperland - avatar
0
in simple words it's works like one time ENTER key. endl (end the line) starts new line
27th Jun 2016, 7:03 PM
Manjunath Hirapur
Manjunath Hirapur - avatar