|
Increment Operator (++)
The expression Within a larger expression, after each sub-expression is evaluated, the resulting side-effect occurs before the next sub-expression is evaluated. For example:
int a = 1;
int b = ++a + a++ + ++a + a++; // a == 5, b == 12
Copyright © 2003 The Stevens Computing Services Company, Inc. All rights reserved. |