strlen长度测量

来源:百度知道 编辑:UC知道 时间:2024/07/07 09:13:23
strlen算出来的字符串长度包括'0'字符吗
例如,fjsld的长度是多少

msdn:returns the number of characters in str, excluding the terminal NULL.
返回字符串长度,但不包含null在内的!

不包括'\0'字符
fjsld 5

这个问题,你编个程算一下不就知道了。比上来提问要快些。

不包括'\0'字符