Endl or n\ why are there both but don't they do the same thing? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Endl or n\ why are there both but don't they do the same thing?

Lessons

19th Dec 2021, 11:14 PM
Jacob Dallimore
3 Answers
+ 3
First, it's '\n' and not "n\" Endl -> only used in C++ for a new line. '\n' -> new line character is available in most popular programming languages.
20th Dec 2021, 12:40 AM
Anannya
20th Dec 2021, 1:10 AM
Ipang
+ 2
Thank you both!
20th Dec 2021, 1:23 AM
Jacob Dallimore