For Loops - Action Statement

Nov 10, 2012 at 6:55pm
Right a simple for loop like this for(int i = 0; i < 10; i++){} Does is matter if its a postfix or prefix operator in the action statement? If so, when do you use postfix and when do you use prefix?
Nov 10, 2012 at 6:58pm
In this case it doesn't. When prefix increment is used ++i the variable is incremented first and then used and the opposite case with postfix.
Topic archived. No new replies allowed.