New course! Every coder should learn Generative AI!
Try a free lesson0
in which situation we would use endl;
c++ endl
2 Answers
+ 4
If you want to end the line, or in other words to put texts into different lines
0
Use std::endl when you want also flush the stream.