字符数组的数组名是字符串的首元素地址,这里的字符串可以被修改,
const 常量字符:指针指向的首元素的地址里面的内容不可被修改,
#include<stdio.h>
int main(){
char str1[] = "hello world!"; // 字符串数组
char str2[] = "hello world!";
const char* str3 = "hello world!"; //常量字符串
const char* str4 = "hello world!";
if(str1 == str2)
printf("str1 and str2 same\n");
else
printf("str1 and str2 not same\n");
if(str3 == str4)
printf("str3 and str4 same\n");
else
printf("str3 and str4 not same\n");
return 0;
}