Right, i'm having problems with 'else' statements. here's what i've got so far:
Code:
if( "%s" == "scott");
printf( "You have the same name as the programmer of this application!\n");
else
printf("welcome %s.\n", this_is_a_string);
The compiler is saying that else is an unrecognised statement and that on the last line, there's a missing semicolon before 'printf'. I know how to solve the semicolon problem but i have never seen a semicolon at the start of an expression, is it right? If i put it after the else, it's ok but the other error still occurs.