Just a simple question that I've been looking for the answer to for a few days, but I figured after awhile that it'd be easier to do it here.
I know that you can use scanf to store numbers and whatnot, as well as using it for if/then statements, but how do you do it with words and stuff? (The question didn't really make sense because I can't think of a good way to word it, so sorry.) Here's what I mean, sort of:
CODE
char something[20];
printf("stuff? ");
scanf("%s", something);
That's how I was doing it, but if you were to do if (something==toast), it doesn't work correctly. (This isn't from an actual program, so I just put in randomness since I'm kind of lazy.) If there is an easy way to do this, I'd appreciate some help.