+ 1

End line & backslash n

What's different between endl and backslash n?

29th Mar 2021, 1:47 PM
Reza Moradi
Reza Moradi - avatar
1 ответ
+ 4
endl also flushes the output stream after adding a newline character in it.
29th Mar 2021, 1:48 PM
Arsenic
Arsenic - avatar