Reputation: 41
#include <stdio.h>
main()
{
printf("az\b\b");
printf("s\ni");
}
above program when compiled with gcc gives output
sz i
Can someone help us out to understand the output
Upvotes: 1
Views: 88
Reputation: 224079
That's because your console interprets '\b'
as a backspace character.
Upvotes: 3