Aug 3, 2009

char str1[]="Hello";//

char str1[]="Hello";//
char *str2=”Hello”;// const
they are different, str1 is on the local stack, str2 is also on the const data segment

No comments:

Post a Comment