I\'m learning C, and am currently studying String Handling. From where I\'m studying, strcmp()
is defined as-
This is a function which c
Upon completion, strcmp() shall return an integer greater than, equal to, or less than 0, if the string pointed to by s1 is greater than, equal to, or less than the string pointed to by s2, respectively.
And you write:
So, after reading all this, I'm inclined to think that 0, 1 or -1 are the only possible outcomes the strcmp() function.
Why? It's exactly that the actual value of the returned integer is not specified, only its sign.