New course! Every coder should learn Generative AI!
Try a free lesson0
Why use endl in c++?
3 Answers
+ 1
endl is used for next line. cout<<endl; will work like printf("/n") statement of c.
+ 1
(@kevin: It's "\n", not "/n".)
0
you can use "\n" or endl.