My C Programming Experiences-1
strcmp
First of all see the code:strcmp(string1, string2)
actually we can write it as
#include
int strcmp(char *string1, char *string2);
Description:
The strcmp function compares the contents of string1 and string2 and returns a value indicating their relationship.
Return Value:
if Return value if < 0 then it indicates string1 is less than string2
if Return value if > 0 then it indicates string2 is less than string1
if Return value if = 0 then it indicates string1 is equal to string1