C – strcmp( ) function – Compare Strings
Strcmp() in C programming language is used to compare two strings. If both the strings are equal then it gives the result as zero but if not then it gives the numeric difference between the first non matching characters in the strings. Syntax of C strcmp() function is–