0

How will be the code if we did not use endl.

13th Dec 2016, 1:44 AM
Jinu Joy
2 Answers
+ 3
endl ends the line so the next output will start on a new line. cout << "hell"; cout ≀≀ "o"; // Output: hello cout << "hell" ≀≀ endl; cout ≀≀ "o"; // Output: hell o
13th Dec 2016, 1:49 AM
Jafca
Jafca - avatar
+ 2
you can use \n onside double quotes to go to next line as cout<<"\n";
13th Dec 2016, 1:58 AM
Bibek Ghimire
Bibek Ghimire - avatar