OMG, I know this should be extremely simple and I have tried everything I have researched but nothing works. I am missing something simple, please help. I just want to declare a string and then later compare it to another string.
I want to declare a key of something like 9 characters. Then I want to compare this string to another one submitted later. Below is what I have and no matter what I change I get errors from incompatible types to missing token.
char key[] ="kjherres";
char f[];
F="kjherres";
if (key==f) {
//run my code
}
I have also tried (strcmp) to no avail. What am I missing? Please help.