0

While writing prinf("hello\n") what this \n do.even if I don't use it then also program runs

29th Aug 2019, 4:56 AM
Prasanna kukade
4 Respuestas
+ 4
I am not sure, but I think it is line break?
29th Aug 2019, 4:59 AM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
+ 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.
29th Aug 2019, 5:17 AM
Thoq!
Thoq! - avatar
0
\n prints statement on the next line.
29th Aug 2019, 5:54 AM
Panda🐼
Panda🐼 - avatar