behaviour of escape characters
#include <stdio.h>
main()
开发者_如何学C{
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
That's because your console interprets '\b'
as a backspace character.
精彩评论