printf("%d\n",strlen("s\n\016\0end"));
为什么答案是3,不是2吗?
strlen()函数取这个"s\n\016\0end"字符串的长度,"s\n\016\0end"这个字符串实际上到\0就结束了。有效部分也就是s\n\016\0,\0是结束标志。