设为首页 加入收藏

TOP

c语言:有趣的转义字符用法
2015-11-24 13:01:45 来源: 作者: 【 】 浏览:25
Tags:语言 有趣 转义 字符 用法
?
程序1:
#include
int main()
{
   printf("c:\test\add\72_12\test.c");
  return 0;
}

?

结果:
c: ? ? ?estdd:_12 ? ? ? est.c
?
?
? ? ? ? ? ? ?Press any key to continue
程序2
#include
int main()
{
   printf("%d\n",strlen("c:\test\add\72_12\test.c"));
   //\t是水平制表符,\a是警告字符,蜂鸣;都只占一个字节
  return 0;
}

?

结果:
19
?
?
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇c语言:输出(Welcome??)和(Welcom.. 下一篇c语言:分别使用for循环和while循..

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: