Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

No, it is not possible for strcmp to return a value of 1 when the inputs are identical. The strcmp function returns 0 if the two strings are identical, and returns a negative value if the first string is less than the second string alphabetically, or a positive value if the first string is greater than the second string alphabetically.