im a n00b programer and im having some trouble comparing text strings.
printf("\n\nWhat color is the sky?\n");
scanf("%s",sky);
if(sky=="blue")
{
printf("blew");
}
else
{
printf("%s",sky);
}
no matter what i type, it always skips 2 the else statement. i think that im doing the comparison wrong. also, can i make multiple comparisons in an if statement?
if(sky=="blue", point=="up")
help would be appreciated. thanks