K
Keith Thompson
bart.c said:I think any expression on it's own counts as a statement:
1234;
is a statement, although the compiler might complain if it doesn't do
anything useful.
Any expression *followed by a semicolon* can be a statement.
1234
is an expression (and not a statement).
1234;
is a statement, specifically an expression statement (and not an
expression).