📜  如何在 C++ 代码示例中获取 char 数组的大小

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

代码示例2
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.