when \b
used inside string.
int main (void)
{
printf("asdfhjk\bll");
return 0;
}
output:
asdfhjll
when \b
used at the end of the string.
int main (void)
{
printf("asdfhjkll\b");
return 0;
}
output:
asdfhjkll
why the last character l
is not removed by \b
. according to the working of \b
, the character preceding the \b
is removed. it works fine when used in the middle of the string, but not when used at the end. why?