hey guys, i've got an issue with my code.. I'm trying to get the program to output names when the user types in an "@" symbol.. here's the code which isnt working.. any help would be appreciated.
Code:int main(void) { char word[20]; scanf("%s", &word); char names[1] = "@"; printf("names = %s \n", names); if (word == names){ printf("Joe, Dave, Larry"); } printf("wrong answer, you typed in %s\n", word); }