0

Why we use endl at the end of cout??

14th Sep 2019, 12:27 PM
THE CRAZY ONE ✌️
THE CRAZY ONE ✌️ - avatar
5 Antworten
+ 3
To break lines. If you do: cout << "This is a line"; cout << "This is another line"; you will get the beautiful output of: "This is a lineThis is another line"; If you use endl, it will do a line break.
14th Sep 2019, 12:29 PM
Airree
Airree - avatar
+ 1
Thx swim
14th Sep 2019, 12:33 PM
THE CRAZY ONE ✌️
THE CRAZY ONE ✌️ - avatar
0
Thx airee
14th Sep 2019, 12:30 PM
THE CRAZY ONE ✌️
THE CRAZY ONE ✌️ - avatar