While Loop Evaluation Help

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).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,234
Latest member
SkyeWeems

Latest Threads

Top