I know what \t
and \b
mean.
But what will happen when a \b
after a \t
, and what will happen when multiple \b
and \t
combine.
Look at this code, It contains a variety of combinations of \t
and \b
:
printf("1\t1\t1\t1\n");
printf("---------------------------\n");
printf("1\t2\b\b3\n");
printf("\t\b1\n");
I got:
1 1 1 1
---------------------------
1 32
1
The two \b
are displayed differently.
The results are confusing, with my existing knowledge simply can not explain.
I do not know how to understand \t
and \b
in the end.