I want to compare two strings and see if they are the same or not
the word same didn't appear after I run this program, is it because I am not supposed to use equal equal to compare?Code:char myString[]="hello";
if (myString == "hello") {
printf ("same\n');
}
I know that in java, I have to use dot equal, what about in C?
Or I have to do something like that:
myString[0]='h'
myString[1]='e'
myString[2]='l'
etc...?