char a[]="abc"; printf("%lu\n", sizeof(a)/sizeof(char));//4
c 字符数组与字符串
原文:https://www.cnblogs.com/mlh1421/p/10087956.html