+ 1

How "endl" use in c++ ? With example.

31st Jul 2018, 3:36 AM
ROSHAN KUMAR
ROSHAN KUMAR - avatar
3 Answers
+ 2
endl is used to add a break in output to use it individually cout<<endl; or to use it with other output cout<<"hello world"<<endl;
31st Jul 2018, 3:50 AM
Deepanshu
Deepanshu - avatar
+ 2
In addition, It is used to flush the buffer. Like std::flush.
31st Jul 2018, 4:40 AM
Disvolviĝo;
Disvolviĝo; - avatar
0
u are right
31st Jul 2018, 4:05 AM
ROSHAN KUMAR
ROSHAN KUMAR - avatar