+ 1

[DUPLICATE] Why do I use endl

So is there anything special about having and endl at the end of the function Cout << “something” << sum << endl; Cout << “something” << sum; Is there an advantage to having the endl at the end of the line

2nd Mar 2018, 2:44 AM
jacob
3 Answers
0
To add a new line to the output
2nd Mar 2018, 2:48 AM
Shripriyan Srinivasan
Shripriyan Srinivasan - avatar
0
Thanks
2nd Mar 2018, 3:24 AM
jacob