New course! Every coder should learn Generative AI!
Try a free lesson0
what's the difference between endl ,\n and \n\n?
1 Answer
+ 2
Printing endl and '\n' are basically the same though endl will certainly flush the output (write the buffer it to stdout). "\n\n" is the same as twice endl or twice '\n'.