str cmp in c code example
Example 1: string compare in c
strcmp(str1, str2) = 32
strcmp(str1, str3) = 0
Example 2: string compare in c
strcmp(leftStr, rightStr);
//compares ascii value and gives positive, negative or zero.
strcmp(str1, str2) = 32
strcmp(str1, str3) = 0
strcmp(leftStr, rightStr);
//compares ascii value and gives positive, negative or zero.