+ 1
Difference
What's the difference between interpretation of '\n' and 'endl' commands by the processor? Are they if any significance? If yes, what are they? Thank you for the answer, in advance! :)
1 ответ
+ 14
"\n" is just a string of length 1 that gets appended to stdout. std::endl , instead, is an object that will cause to append the newline character ( "\n" ) AND to flush stdout buffer. For this reason it will take more processing.