int main(int argc, char ** argv)
{
int i = 0;
i = i++ + ++i;
printf("%d\n", i); // 3
i = 1;
i = (i++);
printf("%d\n", i); // 2 Should be 1, no ?
volatile int u = 0;
u = u++ + ++u;
printf("%d\n", u); // 1
u = 1;
u = (u++);
printf("%d\n", u); // 2 Should also ...
@FredOverflow THX a lot! I've been loosing this link when I migrated to my new laptop recently. So happy I've got it back for marking dupes in future :-D ...
@FredOverflow Sure I know, but I've been loosing this one, because I didn't bookmark it using the SO favorite feature, but the browser favorites instead. So THX again!
@LightnessRacesinOrbit Yeah I didn't understand exactly how he wanted to do the second array but I presented code with enough comments to be understood enough.
still, I think it's the proper course of action - if you have a problem as a result, contact the mods. they'll see you're not being malicious and let you back in ... plus it'll raise awareness of the silly mechanism
> Scott could also write books titled, "Effective Speaking", "Effective Writing", and "Effective Haircuts". He's definitely one of the most effective c++ personalities out there in the real world.