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

No members online now.

Forum statistics

Threads
474,085
Messages
2,570,597
Members
47,218
Latest member
GracieDebo

Latest Threads

Top