c语言:有趣的转义字符用法

2015-11-24 13:01:45 · 作者: · 浏览: 55
?
程序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
?
?