+ 1
What is endl in c++ operators?
7 Réponses
+ 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/
+ 2
it will give you an END of Line: endl. You can also use cout << "\n";
+ 2
Endl is a manipulator.
+ 1
so that you can be able to compile your program to get an output
+ 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.
+ 1
yes I got know about the endl very well by . I understand by useful tips of all your guys .. Thank you so much