String Programs

C program compare two strings using strcmp function

Compare two strings

OUTPUT:-

When strings are equal

compare two strings

When strings are not equal

compare two strings

Strings are case sensitive hence in second output we are getting result “string are not equal” because in first word “f” is in lowercase and in second word “F” is in upercase.