The following compiles: int i = 1;++++++i;
The preincrement operator returns an lvalue. Note that i++++++; does not compile, since the postincrement operator returns an rvalue. I would not
recommend coding like this.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment