C语言练习-2转义字符

#include <stdio.h>
int main()
{
    printf("how are u?\n");// 回车
    printf("i am fine.\n\n");

    printf("how are u? \t");//下一个输出区
    printf("i am fine.\n\n");

    printf("how are u \n");//光标左移一位开始输出
    printf("\bI am fine.\n\n");

    printf("                how are u? ");
    printf("\r I am fine.");//输出位置回到本行开头

    printf("note:\n a  s\ti\bk\rp\n");// pa  s    k
    printf("note:\n a  s\ti\b\bk\rp\n");//pa  s   ki
    return 0;
}

你可能感兴趣的:(C语言练习-2转义字符)