I have a small problem using gets function and a simple if expression. It has to check whether the input is correct or no, in this case should be: !S
char checkCommand[5];
gets(checkCommand);
if(checkCommand=="!S")....;
else puts("Invalid command!");
How come I never end up to get true value for the expression, even if I type !S ? Thanks for all answers!