What is the deference between escape character "\n" and manipulator " endl" although they have the same job ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

What is the deference between escape character "\n" and manipulator " endl" although they have the same job ?

23rd Jul 2020, 9:56 PM
Shafiq Almatari
Shafiq Almatari - avatar
2 Answers
0
In my knowledge there is not much difference
23rd Jul 2020, 10:53 PM
Huxaipha Salik
Huxaipha Salik - avatar
0
The difference is that the endl does not show any writing in the program after implementation while the \ n shows the time it takes to execute the code and some of the sentences in the compiler
24th Jul 2020, 7:08 PM
Abdulrazaq Mohseen Sultan(CS💻💻)