0
Why '\n" is used after hello world in given code?#include <stdio.h> int main() { printf("Hello, World!\n"); return 0; }
C language answer
3 ответов
+ 2
Hey Chahit Bhardwaj ,
\n is used for creating a new line.
(new line escape character)
After your code, it will go on a new line.
Your code example:
"Hello world! \n"
The output:
Hello World!
ㅤㅤㅤ
Hope it helps :)
https://www.sololearn.com/discuss/5987/?ref=app
https://www.sololearn.com/discuss/481024/?ref=app
https://www.sololearn.com/discuss/2438381/?ref=app
https://www.sololearn.com/discuss/1080696/?ref=app
https://www.sololearn.com/discuss/1677363/?ref=app
https://www.sololearn.com/discuss/465100/?ref=app
https://www.sololearn.com/discuss/1843/?ref=app
https://www.sololearn.com/discuss/197940/?ref=app
https://www.sololearn.com/discuss/170266/?ref=app
https://www.sololearn.com/discuss/100892/?ref=app
https://www.sololearn.com/discuss/1779430/?ref=app
https://www.sololearn.com/discuss/1609766/?ref=app
https://www.sololearn.com/discuss/207485/?ref=app
https://www.sololearn.com/discuss/1600999/?ref=app
https://www.sololearn.com/discuss/1112271/?ref=app
0
Thanks buddy,for helping a beginner