程序1:

#include<stdio.h>

int main()

{

   printf("c:\test\add\72_12\test.c");

  return 0;

}

结果:

c:      estdd:_12       est.c

 

 

             Press any key to continue

程序2

#include<stdio.h>

int main()

{

   printf("%d\n",strlen("c:\test\add\72_12\test.c"));

   //\t是水平制表符,\a是警告字符,蜂鸣;都只占一个字节

  return 0;

}

结果:

19

 

 

 

             Press any key to continue