C – Stricmp

C – Stricmp 2017-08-06T09:11:39+00:00

Stricmp :

stricmp(str1,str2) compares str1 and str2 lexicographically without regards to case .Returns a negative value if str1<str2; 0 if str1 and str2 are identical; and positive value if str1>str2.

Syntax :
int stricmp( char *str1, char *str2 );

C – STRICMP EXAMPLE PROGRAM :

Output :

Enter first string

I Love My India

Enter second string

i love my india

str1 : I Love My India

str2 : i love my india

str1 and str2 are identical

Prev Next