char *s1="hello";//声明一个指针指向常量"hello"
char s2[]="hello";//在栈中开辟一个数组字符"hello";
/** s2[]="hello" 相当于
* char s2[6];
* s2[0]='h';
* s2[1]='e';
* s2[2]='l';
* s2[3]='l';
* s2[4]='0';
* s2[5]='\0';
**/
说明:
s1内容不能修改,因为他指向常量 s2内容可以修改,因为他指代内存中的变量区 s2其地址和容量在生命期里不能改变