0
Can someone tell me the difference between cout <<"" and cout << <<endl;
2 Respuestas
+ 4
cout << "";
writes an empty string to the output buffer.
cout << << endl;
is just a syntax error. You cannot opt to print "nothing" like that, since you omitted an argument for <<, which requires both LHS and RHS arguments to work.
+ 4
std::endl writes '\n' and flushes the terminal