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.
Saturday, November 27, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment