in reply to Pre vs Post Incrementing variables
A similar line in Perl (allowing for syntax differences) gives 3 3 3, because of optimisation.int x = 0; printf("%d %d %d\n",++x,++x,++x);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Pre vs Post Incrementing variables
by SavannahLion (Pilgrim) on Sep 12, 2010 at 14:19 UTC | |
by cdarke (Prior) on Sep 13, 2010 at 08:18 UTC | |
by ikegami (Patriarch) on Sep 13, 2010 at 15:56 UTC |