strlen不算,sizeof算
若有定义char s[20]="ABCD";则strlen(s)=4,而sizeof(s)=20。
char str[5] = "abcd";strlen(str) == 4sizeof(str) == 5