How do you compare characters in a string?
The strcmp() compares two strings character by character. If the first character of two strings is equal, the next character of two strings are compared. This continues until the corresponding characters of two strings are different or a null character ‘