News for hackers. Stuff that matters.
Re:C Questions and Answers by gamegoblin on Wednesday March 04, 2015 @01:57AM (#9143052)
My CS101 prof would give 50-100 line blocks of code, and hidden in them somewhere would be something like:

    if(condition); {
        some stuff
    }
Note the semicolon after the if-statement.

The tests became games of "find the semicolon or = in place of ==". Ugh.

Re:C Questions and Answers by oneeyedpigeon on Wednesday March 04, 2015 @03:13AM (#9143214)
Thankfully, your compiler probably warns about this nowadays, making such pointlessness obsolete.
Re:C Questions and Answers by ygra on Wednesday March 04, 2015 @05:45AM (#9143563)
And the static analysis tool you're hopefully using.