求的是資料型別所佔空間的大小,而strlen是求字串的長度. 例項1: printf("char=%d/n",sizeof(char)); //1. printf("char*=%d/n",sizeof(char*));//4.
確定! 回上一頁