Strcmp( ) function :
strcmp( ) one can also use strcmp( ) function instead of stricmp( ). The only difference between them is the former function discriminates between small and capital letters where as the letter doesn't.
The out put of the before program (stricmp( ) )after strcmp( ) in place of stricmp( ) will be as follows.
Enter string (1) :HELLO
Enter string (2) :hello
The two strings are different :
The above function compares two strings for finding whether the are same are different.
strcmp( ) one can also use strcmp( ) function instead of stricmp( ). The only difference between them is the former function discriminates between small and capital letters where as the letter doesn't.
The out put of the before program (stricmp( ) )after strcmp( ) in place of stricmp( ) will be as follows.
Enter string (1) :HELLO
Enter string (2) :hello
The two strings are different :
The above function compares two strings for finding whether the are same are different.