2022.2.28 字符与字符串的长度不一样
作者:互联网
\\ 字符与字符串的长度不一样
#include <stdio.h>
#include <string.h>
int main()
{
char arr1[]="abc";
char arr2[]={'a','b','c'};\\直到遇到'\0'
printf("%d\n",strlen(arr1));
printf("%d\n",strlen(arr2));
return 0;
}\\strlen--string length
标签:strlen,28,char,arr2,arr1,printf,字符串,include,2022.2 来源: https://www.cnblogs.com/cyk1212/p/15947232.html