Just what is it that you think he's wrong about?
(I'm assuming jackie is a "he"; apologies if I'm mistaken.)
In C++, the result of ``++x'' is an lvalue, and the result of ``x++''
is not an lvalue, so he's right about that; it's off-topic, but a
perfectly reasonable introduction to his question.
The rest of the post was a question, which can hardly be wrong, and a
statement that he doesn't know something, which you can hardly assume
is wrong.
Illustrative of what?
What is the point of declaring x volatile?
Certainly it does.
In both C and C++, the operand of a prefix or postfix "++" must be a
modifiable lvalue. In C, the result of either operator is not an
lvalue; in C++, one is an lvalue and one isn't.
In any case, your code snippet is equally valid in either C or C++,
and would behave in exactly the same way even if both prefix and
postfix "++" yielded lvalues; you never use them in a context that
requires an lvalue.
So what was your point again?
--
Keith Thompson (The_Other_Keith) (e-mail address removed) <
http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"