下面程序的输出结果是( ) #in...
发布于 2022-03-03 14:04:02
下面程序的输出结果是()
#include <iostream> using namespace std int main() { char str1[] = "hello world" char str2[] = "hello world" const char str3[] = "hello world" const char str4[] = "hello world" const char* pstring1 = "hello world" const char* pstring2 = "hello world" cout << boolalpha << ( str1==str2 ) << ',' cout << boolalpha << ( str3==str4 ) << ',' cout << boolalpha << ( pstring1==pstring2 ) <<endl return 0 }
登录后免费查看答案
关注者
0
被浏览
17
1 个回答