+ 2
Why we use endl ?
16 Antworten
+ 7
in c++ endl is used to create new line it's same like \n in c programming.
+ 4
if any data after endl it should be displayed in next line .
It represents line had ended
+ 2
It's used when you need to write in a new line after the previous line.
+ 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!
+ 1
"endl; " is a C++ manipulator used to insert a new line. It is same as "\n" .
+ 1
endl is used to write in the next line
0
new line
0
It generates a new line
0
new line
0
std::endl is used to break a line. It's a part of the standard library, use it for maximum cross-platform compatibility.
0
cout
0
cout
0
how do we relate java to c++and create a final exe file
0
to go to next line and "\n" can also be used as an alternative
0
next line
0
used to go to next line