posted 15 years ago
x is incremented by 1 AFTER the first check (y==x), then y is increased by 1
BEFORE the second check (x<y).
The result is 34.
Edit to make it clear, these are the steps :
1) y == x ? false [y=3, x=2]
2) x++; [y=3, x=3]
3) y++; [y=4, x=3]
4) x < y ? true
[ October 22, 2008: Message edited by: Matteo Di Furia ]