If the two strings are identical then strcmp() function returns
Answers
Answered by
1
If the two strings are identical then strcmp() function returns zero
C comparison functions like int strcmp(char* a, char* b); return zero when the values are equal. A comparison function measures greater than and less than as well as equality.
Comparison Function Return Values
- a < b less than returns (-1)
- a == b equality returns zero
- a > b greater than returns +1
Similar questions