Write a C program to illustrate \b escape sequence

0

Here is an example of a C program that uses the \b escape sequence to remove the last character in a string:


When the program is run, it will output "Hello Worl" (removing the last "d" character from the original string "Hello World").


The \b escape sequence is used to remove the last character in a string. it is used with the printf statement to move the cursor back one position.


It is not available in all the standard libraries and depends on the operating system and terminal or console.

Post a Comment

0Comments
Post a Comment (0)