¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita0
so \n and endl are same?
2 Respuestas
+ 2
endl is more efficient than \n ,as after each execution endl will flush the output buffer and programs run faster in endl. Basically speaking they just output a new line .
0
they both do the same function?