Its not complete, but in doesnt print anything
char *fruit[] = {"rasberry", "cherry"};
char *veg[] = {"salad", "tomato"};
char word;
printf("Print a veg or a fruit \n");
scanf("%s", &word);
for (int i = 0; i < strcmp(fruit, veg ); i++)
{
if (word == fruit[i])
printf("Its fruit!");
}
how to compare it?