0
In c++ why do we sometimes put /n inside double quotes along with the string?
Why do we use /n along with the string in the same double quote? For eg cout<<"my name is parth \n";
4 Answers
+ 1
well its simple it does the same thing as /n in inverted commas just a short and another way of doing that.
+ 2
\n is to go to the next line
+ 1
/n and <<endl do the same things.
cout<<"some things /n"; and cout<<"some things<<endl; print the same thing
- 1
because our long disgusting fingers miss the buttons