📜  c++ char 数组的长度 - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:46.610000             🧑  作者: Mango

代码示例4
Instead of sizeof() for finding the length of strings or character 
arrays, just use strlen(string_name) with the header file
#include    
it's easier.