/*
strlen函数作用:计算字符串的长度(大小)
sizeof函数作用:计算文件或者数据占的内存(字节)
*/
//strlen函数声明在string.h文件中
#include<string.h>
#include<stdio.h>
int main()
{
int size1 = sizeof("haha");
int size2 = strlen("haha");
printf("%d,%d\n",size1,size2);
// sizeof函数的输出结果是5
// strlen函数的输出结果是4
return 0;
}