#include <stdio.h>
int main()
{
char cArr[]={'I','L','O','V','E','C'};
char sArr[]="ilovec";
int i=sizeof(cArr);
int j=sizeof(sArr);
printf("字符数组的长度是:%d,字符串的长度是:%d",i,j);
return 0;
}
#include <stdio.h>
int main()
{
char cArr[]={'I','L','O','V','E','C'};
char sArr[]="ilovec";
int i=sizeof(cArr);
int j=sizeof(sArr);
printf("字符数组的长度是:%d,字符串的长度是:%d",i,j);
return 0;
}