Write a C program to illustrate \t escape sequence

0

Here is an example of a C program that uses the \t escape sequence to produce a horizontal tab:


When the program is run, it will output "Hello" followed by a horizontal tab and then "World", the distance between Hello and World will be a few spaces.


The \t escape sequence is used to produce a horizontal tab. It can be used in strings passed to functions like printf() and puts().


It is used to separate the text in columns, it moves the cursor to the next tab stop.


It is platform-independent and will work the same way on all operating systems and terminals.


It can also be used to format the output and make it more human-readable.

Post a Comment

0Comments
Post a Comment (0)