+ 1
How "endl" use in c++ ? With example.
3 Antworten
+ 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;
+ 2
In addition, It is used to flush the buffer.
Like std::flush.
0
u are right