c 字符数组与字符串

char a[]="abc";
printf("%lu\n", sizeof(a)/sizeof(char));//4

猜你喜欢

转载自www.cnblogs.com/mlh1421/p/10087956.html