Computer Science, asked by prem3972, 10 months ago

what is the function of endl in c++?

Answers

Answered by mohsinalam
0
endl, among other things, will flush the stream, i.e., empty it to whatever target it has (screen, file, ...). So...if you just want to end the line you can do either. But if you use cout I suggest you stick with the manipulator cout since it will also flush your stream

please mark this as brainliest answer
Similar questions