C 字符串长度:strlen() 函数

2025年3月28日 | 阅读1分钟

strlen() 函数返回给定字符串的长度。它不计算空字符 '\0'。

示例

编译并运行

输出

Length of string is: 10
下一个话题C strcpy()