compare string sin c code example
Example 1: how to compare strings in c
if (strcmp(strA,strB) != 0){
...
}
Example 2: string compare in c
strcmp(str1, str2) = 32
strcmp(str1, str3) = 0
if (strcmp(strA,strB) != 0){
...
}
strcmp(str1, str2) = 32
strcmp(str1, str3) = 0