+ 1

can a command be written like this.- cout <<"\n Hello world !";

16th May 2017, 2:29 AM
Monick Verma
Monick Verma - avatar
2 Réponses
+ 4
yes \n can appear anywhere in your string and it'll break the line. in your case, the output will be- <blank line> Hello world !
16th May 2017, 2:55 AM
Nikunj Arora
Nikunj Arora - avatar
+ 1
yes
23rd May 2017, 3:44 PM
saikat das