哪些原因导致回报价值大于0、1或-1?
原文:What causes strcmp to return a value other than 0, 1, or -1?
原文:What causes strcmp to return a value other than 0, 1, or -1?
I have this piece of code. When I run it, it returns 13, -13, and 0. Isn t it supposed to return 1 if the str1 is greater than str2 and -1 if str1 is less than str2. I get 13, -13 and 0. #include <...