+ 5
Why can't we use \n outside the inverted commas?
If \n is used inside the inverted commas is it not considered as a part of sentence of the program?
6 ответов
+ 5
keywords (as of functions) in c++ are cout and printf. with them you initialize the command for printing on the screen. if you don't use \n in their syntax the c++ language doesn't know that you wanted to print it on the screen so it won't do that.
+ 2
This /n and all commands are getting error in c++turbo app while make a program
0
Cout
0
The compiler doesn't understand that it is the part of a string and u want to print it on the screen
0
Use endl instead to jump to a new line
0
But \n is still an alternative