#include<stdio.h>
#include<string.h>
int main()
{
char a[100]={1,2,3};
printf("%d\n",strlen(a));
printf("%d\n",sizeof(a));
return 0;
}
输出结果:
3
100
#include<stdio.h>
#include<string.h>
int main()
{
char a[100]={1,2,3};
printf("%d\n",strlen(a));
printf("%d\n",sizeof(a));
return 0;
}
输出结果:
3
100