0
What happens if you don't put endl?
6 Answers
+ 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.
+ 1
statement will be continued on same line. endl is used to make your output on new line
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
0
it'll continue printing in the same line
0
You can use \n just inside a string. Use endl when you don't want the whole string on one line.
0
in simple words it's works like one time ENTER key.
endl (end the line) starts new line