如果是字符数组要注意最后有一个终止符。比如"Tencent"有T e n c e n t \0八个字符,所以str数组的长度是8,所以sizeof(str)=8*sizeof(char)=8。

results matching ""

    No results matching ""