字元和 字串的不同
(高顯忠, sjgau4311@gmail.com, 2011-04-28 14:44)
1樓
#if 0
#endif
// ------------------------------------------------------------------
#include <stdio.h>
#include <stdlib.h>
int main()
{
char ch1= 'A', s1[]= "a12345678123";
printf("sizeof(ch1)= %d \n", sizeof(ch1));
printf("sizeof(s1)= %d \n", sizeof(s1));
system("pause");
return 0;
}
// ------------------------------------------------------------------