转义序列 | 说明 |
---|---|
\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;
}
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。