代码疑云(3)-静态字符串

代码:ios #include<iostream> using namespace std; int main() { char *str1 = "string"; char *str2 = "string"; if(str1 == str2) cout<<"str1 is same as str2"; } 疑:str1 的值是否等于 str2 而输出字符串“str1 is s
相关文章
相关标签/搜索