开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜