03.11.2012, 20:40
Either version works in for loops. There's no difference whatsoever. The difference becomes clear when you start using this in other structures. For example:
Will access index 2. i is incremented first.
Will access index 1. i is incremented afterwards.
pawn Код:
new i = 1;
printf("%d", someArray[++i]);
pawn Код:
new i = 1;
printf("%d", someArray[i++]);

