0
While writing prinf("hello\n") what this \n do.even if I don't use it then also program runs
3 Réponses
+ 4
I am not sure, but I think it is line break?
+ 2
Yes, it prints a new line.
Do this:
printf("hello")
printf("hello")
And you will see that it doesn't print the second "hello" in a new line.
0
\n prints statement on the next line.