- 1
What is strcmp
What does it do ?? Compares two strings !!?
3 Answers
+ 8
It compares strings lexicographically which means it compares both the strings character by character
+ 3
Yeah, it compares two strings and returns a numeric difference of the ASCII code of first two non matching pair of characters.
it returns zero if both strings are same