0

What is the use of endl

16th Oct 2016, 4:09 AM
Amal raj
10 Respuestas
+ 4
with endl u go to the next line
18th Oct 2016, 5:47 PM
XOPGAMINGX _300
XOPGAMINGX _300 - avatar
+ 3
endl is used to move the cursor to next line Eg:- cout<<5<<endl; cout<<3; Output will be:- 5 3
16th Oct 2016, 5:04 AM
VIPUL RINWA
VIPUL RINWA - avatar
+ 3
now i swiched form learning c++ to learning java i'll come back later
11th Jan 2017, 10:31 PM
XOPGAMINGX _300
XOPGAMINGX _300 - avatar
+ 2
<< std::endl; or if using namespace <<endl; is used to end the line followed by next line. So you can have: cout<<"i will use next line with \n"; Or cout<<"using endl will end the line and go to next line" <<endln Note you can use \n with endl. Basically endl is ending end line. Hope that helps :)
16th Oct 2016, 11:45 PM
MDias
+ 2
or endl;
17th Oct 2016, 11:09 PM
Ahmed Sobhi Ask
Ahmed Sobhi Ask - avatar
+ 1
\n
17th Oct 2016, 11:08 PM
Ahmed Sobhi Ask
Ahmed Sobhi Ask - avatar
+ 1
a new line
20th Oct 2016, 8:04 AM
Jenea Jelimalai
Jenea Jelimalai - avatar
+ 1
endl is used when we have to start new line and end the line we are working on
20th Oct 2016, 10:18 AM
ankit kumar
ankit kumar - avatar
0
'end' is used to tell the compiler to print the information on separate lines
30th Oct 2016, 5:55 PM
Agastya Asthana
Agastya Asthana - avatar
0
Endl is used when we want to end the line
12th Jan 2017, 3:07 AM
ankit kumar
ankit kumar - avatar