First page Back Continue Last page Graphics
First (missed in chapter 4)
prefix vs postfix increment
++ i // prefix version
i++ // postfix version
Also decrementing (--j vs j-- )
++ i increments and then returns the value. i++ returns the value and then increments.
Practice: plus_one.cpp
int y = ++x; // change x, then assign to y
int y = z++; // assign to y, then change z