xxxxxxxxxx
#include <stdio.h>
int main()
{
char favoriteDairyProduct[30];
scanf("%s",favoriteDairyProduct);
if(favoriteDairyProduct == "cheese")
{
printf("You like cheese too!");
}
else
{
printf("I like cheese more.");
}
return 0;
}
xxxxxxxxxx
char str1[] = "Look Here";
char str2[] = "Look Here";
int i = strcmp(str1, str2);
xxxxxxxxxx
strcmp(leftStr, rightStr);
//compares ascii value and gives positive, negative or zero.