4 ms·
One case where you would want to use endl and not \n is if you're outputting to something like a log file that's being monitored with tail -f.
by dkopi 10y ago
One case where you would want to use endl and not \n is if you're outputting to something like a log file that's being monitored with tail -f.