C programming output


#1

#include<stdio.h>
void main()
{
printf(“Hello\b\b\b\b\b”);
printf(“Hi!\b\b\bBye”);
}


#2

‘\b’ is an escape character. it only modifies what you see on the terminal. so it works only on the console because it’s possible to make the cursor go back. it instruct the terminal/console to move the cursor backwards and place a space character at the new cursor position.
the output of above program is Byelo.