Possible Duplicate:
Post Increment and Pre Increment concept?
Can any one explicitly explain how prefix increment differs from suffix increment?
also can someone explain why this output 6?
i=1;
cout << ++i + ++i;
also why this gives 4
i = 1;
cout << ++i + i++;
and why this produces true
i = 0;
cout << (i++ || i++)