C++ String Literal Comparison: Why "join" == "join" is False
The output of this program will be "not equal".\n\nThis is because the condition "join" == "join" is comparing two string literals, which are actually pointers to different memory locations. Therefore, the comparison will always be false, and the program will print "not equal.
原文地址: https://www.cveoy.top/t/topic/pSDU 著作权归作者所有。请勿转载和采集!