+ 1

What is endl in c++ operators?

8th Jun 2018, 4:55 PM
rupyes kaur
rupyes kaur - avatar
7 Réponses
8th Jun 2018, 5:03 PM
Random
Random - avatar
+ 6
The cout operator does not insert a line break at the end of the output. One way to print two lines is to use the endl manipulator, which will put in a line break. https://www.sololearn.com/learn/CPlusPlus/1604/
8th Jun 2018, 5:02 PM
Scooby
Scooby - avatar
+ 2
it will give you an END of Line: endl. You can also use cout << "\n";
8th Jun 2018, 5:18 PM
León Silva
León Silva - avatar
+ 2
Endl is a manipulator.
29th Oct 2019, 3:00 PM
Sonika
Sonika - avatar
+ 1
so that you can be able to compile your program to get an output
9th Jun 2018, 7:38 PM
MAVEN
MAVEN - avatar
+ 1
endl operator is used to get a line break at the end of the output For example cout<<"i want to be a developer."; cout<<"What should i do?"; output will be: i want to be a developer. What should i do? But if you write code like cout<<"i want to be a developer."<<endl; cout<<"What should i do?"; output will be: i want to be a developer. What should i do? Hope it will help you.
20th Jun 2018, 7:22 PM
Shrashti kesharwani
Shrashti kesharwani - avatar
+ 1
yes I got know about the endl very well by . I understand by useful tips of all your guys .. Thank you so much
12th Jul 2018, 8:04 AM
rupyes kaur
rupyes kaur - avatar