C语言可使用的所有转义序列

转义序列 说明
\n 表示换行符
\r 表示回车
\b 表示退格
\f 表示换页符
\t 表示水平制表符
\v 表示水直制表符
\a 插入一个铃(警报)字符
\? 插入问号(?)
\ 插入双引号()
\' 插入单引号(')
\\ 插入反斜杠(\)
#include <stdio.h>

int main(void)
{
  printf(Hi there!\n\n\nThis is a test);
  printf( test test test test.);
  printf(\nmore test.\n\n\n\a\a);
  printf(Hey, What was test???\n\n);
  printf(\t1.\tA test?\n);
  printf(\t2.\tA test?\n);
  printf(\t3.\tA test?\n);
  printf(\n\t\t\b\btest test test?\n\n);
  return 0;
}

相关文章

for遍历数组
。。。
声明一个计数循环
咕咕咕
#include <stdio.h> int main (void) { printf (&quo...