原文链接:https://blog.csdn.net/lee514/article/details/82940859
strlen( )strlen( )求得的是字符串的长度
例如字符串 str[20]= {“abcd”};
strlen(str),结果为4
sizeof( )sizeof( )计算字符串占的总内存空间
例如字符串 str[20]= “abcd”
sizeof(str),结果为20