2008年7月29日 星期二

size for array & pointer

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

沒有留言: