1.  \t,跳过8个空格,从第8个位置结束,从第9个位置开始。

2.  若前面的字节<=7,从第8个位置结束,从第9个位置开始。

3.  若前面有8个字符,则从第16个位置结束,从第17个位置开始

#include<stdio.h>
main()
{
    printf("\tb\n");
    printf("12345678b\n");
    printf("-----------------\n"); // \t,跳过8个空格,从第8个位置结束,从第9个位置开始。
    printf("\tb\n");
    printf("12\tb\n");
    printf("1234567\tb\n");
    printf("-----------------\n"); // 若前面的字节<=7,从第8个位置结束,从第9个位置开始。
    printf("\tb\n");
    printf("12345678\tb\n");
    printf("123456789012345\tb\n");// 若前面有8个字符,则从第16个位置结束,从第17个位置开始
    return 0;
}

输出结果为

        b
12345678b
-----------------
        b
12      b
1234567 b
-----------------
        b
12345678        b
123456789012345 b

更多推荐

C语言,\t的用法