0

What is use of 'endl '

24th Sep 2018, 4:19 PM
Atul Kumar Soni
Atul Kumar Soni - avatar
3 Réponses
+ 5
Endl inserts a newline character. Example: cout<< "text1" << endl << "text2"; Output: text1 text2
24th Sep 2018, 4:24 PM
Aleksander Szczepura
Aleksander Szczepura - avatar
+ 1
it means end line. Its like \n character constant. Whatever you write after it will be displayed in a new line beneath.
24th Sep 2018, 4:25 PM
Akib
Akib - avatar
0
thanks
30th Sep 2018, 11:25 AM
Atul Kumar Soni
Atul Kumar Soni - avatar