Saturday, November 27, 2010

The Pre-increment Operator

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.

No comments:

Post a Comment