Why are we using endl . If we dont use endl it comes error . Why is there need to use endl? After everystatement.At the end paas | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why are we using endl . If we dont use endl it comes error . Why is there need to use endl? After everystatement.At the end paas

28th Oct 2019, 6:41 AM
VISHAL JAYMANGAL DEDAVAT
2 Answers
+ 10
Endl is the same as "/n". You use it to end the line you are writing on, and begin with a new one. example: cout << "abc"; cout << " def"; result: abcdef cout << "abc" << endl; cout << "def"; result: abc def
28th Oct 2019, 7:03 AM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
+ 2
What kind of errors are you encountering Vishal Jaymangal Dedavat?
28th Oct 2019, 8:27 AM
G.T.T
G.T.T - avatar