请教:北京清华同方面试题第1大题第1小题如何解答?
【题目描述】
1、以下三条输出语句分别输出什么?
char str1[] = "abc";
char str2[] = "abc";
const char str3[] = "abc";
const char str4[] = "abc";
const char* str5 = "abc";
const char* str6 = "abc";
cout << boolalpha << (str1==str2 ) << endl; // 输出什么?
cout << boolalpha << (str3==str4 ) << endl; // 输出什么?
cout << boolalpha << (str5==str6 ) << endl; // 输出什么?
【我提交的答案】:truetruefalse
【参考答案分析】: