01.03.2015, 20:44
In an if-statement, !variable means "variable == 0". Strcmp returns 0 when the strings match, so !strcmp means match. When you say if(variable), it actually means if(variable != 0), so "if( strcmp(string1, string2) )" is true when string1 and string2 do NOT match.

