0
Is using \n in c++ for new line a good practice?
2 Respostas
0
`std::endl` calls `flush` stream while `cout << "\n"` does not, so "\n" should have better performance.
0
It's is a good practise
But mostly use it because it makes your output screen look nice and organized