0

why we use "endl" in double making program

16th Oct 2016, 5:23 AM
Hunain Khalid
Hunain Khalid - avatar
3 Answers
+ 2
To move next "command output" for example cout output to the next line: lets say we want to have output like that: -Whats up? - Nothing. So u have to move nothing to the 2nd line to make it looks like conversation. thats why after "cout << "-Whats up?" u have to add " << endl;"
16th Oct 2016, 7:14 AM
maciek
+ 1
endl means EndLine. Like when you press Enter on your keyboard
20th Oct 2016, 3:31 PM
Devonys Skug
Devonys Skug - avatar
0
endl used so that the output will not be print in a single line
16th Oct 2016, 4:45 PM
sanju