- 1

What is strcmp

What does it do ?? Compares two strings !!?

3rd Mar 2022, 3:03 PM
Bernathan Rodriguez
Bernathan Rodriguez - avatar
2 Antworten
+ 8
It compares strings lexicographically which means it compares both the strings character by character
4th Mar 2022, 4:56 AM
Vaibhav
Vaibhav - avatar
+ 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
3rd Mar 2022, 3:11 PM
NonStop CODING
NonStop CODING - avatar