Category:C: Difference between revisions

Content added Content deleted
Line 36: Line 36:


}</lang>
}</lang>

===Semicolons===
Any "executable" statement must end in a semicolon, such as an assignment or function call. If you get an error message from your compiler, it won't explicitly tell you "Expected semicolon at end of line X." Go to the line number it says the error is at, and look a few lines <i>above</i> that. You might have forgotten a semicolon there.


===Scope===
===Scope===