What is endl | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is endl

tell me

8th Feb 2017, 9:18 AM
Suraj Rahate
Suraj Rahate - avatar
5 Answers
+ 2
its used to end an line. (and start an new one)
8th Feb 2017, 9:20 AM
Sandakan Space MAX
Sandakan Space MAX - avatar
+ 2
cout<<endl≤<"1"; generates a new line I.e. ends the current line and the followed thing is outputted in next line. It is nearly equivalent to cout<<"\n";. for exact std::cout << '\n' << std::flush;
8th Feb 2017, 9:22 AM
Megatron
Megatron - avatar
+ 1
It's a value that tells cout object to start new line. Treat it as a shortcut for endline
8th Feb 2017, 9:22 AM
Mieszko Mieruński
Mieszko Mieruński - avatar
0
endl => end line or a more simple declaration - its a line break. cout << "Hello "; cout << "Wordl"; // Output => Hello World cout << "Hello " << endl; cout << "Wordl"; // Output => Hello // World
8th Feb 2017, 9:21 AM
R4xx4r
R4xx4r - avatar
0
endl is used to end a line end=end and l=line so endline.. it moves pointer to next line like we press enter in notepad it goes to next line.
10th Feb 2017, 5:47 AM
subyyal
subyyal - avatar