一道淘宝的笔试题_请大吓请点!
#include<iostream.h>void main()
{
char str1[]="abc";
char str2[]="abc";
// char *str = str1;
const char str3[]="abc";
const char str4[]="abc";
const char *str5="abc";
const char *str6="abc";
if (str1==str2) cout<<"TRUE"<<endl;
else cout<<"FALSE"<<endl; //FALSE;
if (str3==str4) cout<<"TRUE"<<endl;
else cout<<"FALSE"<<endl; // FALSE;
if (str5==str6) cout<<"TRUE"<<endl;
else cout<<"FALSE"<<endl; //TRUE
}
为什么输出会是假呢?