On Sep 11, 6:59 am, vinnie <centro.ga...@gmail.comwrote:
what's the difference between " i++ " and " ++i " ?
Thanks
Assuming the appropriate declarations, then
i = 1;
x = i++;
assigns 1 to x -- "++" is post-increment operator.
i = 1;
x = ++i;
assigns 2 to x -- "++" is pre-increment operator.