0
How will be the code if we did not use endl.
2 Respostas
+ 3
endl ends the line so the next output will start on a new line.
cout << "hell";
cout ≤≤ "o";
// Output:
hello
cout << "hell" ≤≤ endl;
cout ≤≤ "o";
// Output:
hell
o
+ 2
you can use \n onside double quotes to go to next line as
cout<<"\n";