2008年7月29日星期二

size for array & pointer

char str[100];
char *str2=str;
sizeof(str)  
--->   100
sizeof(str2)
---->  4

0 意見: