The output of the /b escape sequence depends on compiler to compiler.
1. Various possible outputs are:Non-destructive backspace : Here, a “\b” just makes the cursor shift backwards , without erasing any data and replacing the current character encountered with the new entered one.
2. The conventional backspace : Here, a “\b” means the normal backspace we use through our keyboards..
Example:
char name1[]=”sachin”;
char name2[]=”al”;
printf(“%s\b\b\b%s”, name1,name2);
Here, the output as per situation 1 would be
sacaln
, and as per situation 2 would be
sacal.