Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Why Why

Name: why 2010-10-29 14:11

int i=5;
i = ++i;
print(i);//prints 6

int i=5;
i = i++;
print(i);//prints 6

int i = 5;
i = i++ + ++i;
print(i);//prints 11?...........NO ITS 12. WHY

Name: Anonymous 2010-10-30 9:30

>>6
Your reasoning only shows that you know nothing of what that sequence of machine instructions is produced for that expression.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List