Posts by anonimocbhudivbhufbhurf • 3 points
1 post
-
-2
votes1
answer36
viewsQ: How can I check with `if` if the word typed is equal to some word in a list of strings in C?
example: #include <stdio.h> int main(){ char input[20]; char* strings[] = {"maça","banana"}; printf("tente acertar uma das minhas frutas favoritas:\n"); scanf("%s", input); if(input ==…
casked anonimocbhudivbhufbhurf 3