Write a C program to illustrate \n escape sequence

0

Here is an example of a C program that uses the \n escape sequence to produce a new line:


When the program is run, it will output "Hello" on the first line and "World" on the second line. 


The \n escape sequence is used to produce a new line. It can be used in strings passed to functions like printf() and puts().


It is a platform-independent way to produce a new line, it will work the same way on all operating systems and terminals.


It can be used to separate the lines of output, to format the output, and also to make the output more human-readable.

Post a Comment

0Comments
Post a Comment (0)