• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
Menu
0

What is better \n or endl?

cout
24th Sep 2021, 5:50 AM
Rodriguez Kyle D.
3 Answers
+ 2
https://www.sololearn.com/discuss/1956685/?ref=app https://www.sololearn.com/discuss/265796/?ref=app https://www.sololearn.com/discuss/78193/?ref=app https://www.sololearn.com/discuss/1392532/?ref=app https://www.sololearn.com/discuss/2410326/?ref=app https://www.sololearn.com/discuss/650395/?ref=app https://www.sololearn.com/discuss/127013/?ref=app https://www.sololearn.com/discuss/2328711/?ref=app https://www.sololearn.com/discuss/242949/?ref=app https://www.sololearn.com/discuss/115622/?ref=app https://www.sololearn.com/discuss/992807/?ref=app https://www.sololearn.com/discuss/36076/?ref=app
24th Sep 2021, 6:10 AM
äœ çŸ„é“èŠć‰‡ïŒŒæˆ‘ä蟿˜Ż
äœ çŸ„é“èŠć‰‡ïŒŒæˆ‘ä蟿˜Ż - avatar
0
Although both can be used. I believe \n is preferable as it's easier to use plus endl performs worse in comparison
24th Sep 2021, 5:56 AM
CHANDAN ROY
CHANDAN ROY - avatar

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
Is this realistic enough?
1 Votes
"Which is harder to master — Machine Learning or Cybersecurity? And why?"
1 Votes
"What’s the best way to combine creativity and coding? Can storytelling improve web apps?"
1 Votes
Need friends
0 Votes
MASS N NUMBER OF OBJECT DELETION FROM A CLASS
0 Votes
I am a beginner, please teach me how to use Python
0 Votes
Python
1 Votes
Can u learn multiple language at the same time, without misplacing the formats of each with the other
0 Votes
Can someone please explain python for me
0 Votes
How do you print inputs
0 Votes