+ 2

Why we use endl ?

13th Oct 2016, 9:57 AM
sangam nayak
sangam nayak - avatar
16 Respuestas
+ 7
in c++ endl is used to create new line it's same like \n in c programming.
13th Oct 2016, 11:53 AM
Rasheed Khan
Rasheed Khan - avatar
+ 4
if any data after endl it should be displayed in next line . It represents line had ended
29th Jan 2017, 3:00 PM
Konduru. Chandana Sree
Konduru. Chandana Sree - avatar
+ 2
It's used when you need to write in a new line after the previous line.
14th Oct 2016, 3:12 AM
kiran
+ 2
we use endl after we print something in c++, it refers to new line, so suppose you have 3 sentences to print, but you want each sentence on a new line, that's when you use endl at the end of each print function. i hope this helped!
15th Oct 2016, 10:54 AM
Nareg
Nareg - avatar
+ 1
"endl; " is a C++ manipulator used to insert a new line. It is same as "\n" .
24th Feb 2017, 8:22 AM
Jerome Dass
Jerome Dass - avatar
+ 1
endl is used to write in the next line
27th Feb 2017, 7:29 PM
Shekhar Jha
Shekhar Jha - avatar
0
new line
13th Oct 2016, 11:25 AM
Monu singh
Monu singh - avatar
0
It generates a new line
13th Oct 2016, 11:30 AM
rahul sharma
rahul sharma - avatar
0
new line
13th Oct 2016, 12:13 PM
sachin
0
std::endl is used to break a line. It's a part of the standard library, use it for maximum cross-platform compatibility.
13th Oct 2016, 3:02 PM
Sagy Zino
0
cout
14th Oct 2016, 3:41 PM
prashant rajput
0
cout
14th Oct 2016, 5:25 PM
Derickus Asare
Derickus Asare - avatar
0
how do we relate java to c++and create a final exe file
14th Oct 2016, 5:44 PM
Rayan Aridi
Rayan Aridi - avatar
0
to go to next line and "\n" can also be used as an alternative
17th Oct 2016, 4:55 AM
Shekhar Jha
Shekhar Jha - avatar
0
next line
29th Jan 2017, 3:33 PM
Shekhar Jha
Shekhar Jha - avatar
0
used to go to next line
2nd Feb 2017, 1:41 AM
pari panwar
pari panwar - avatar