Possible Duplicate: C++ pre/post increment expression evaluation
#include<iostream>
using namespace std;
int main()
{
int a=5;
b=a++*++a; //(A) gives 36
cout<<(a++*++a); //(B) gives 35
return 0;
}
Why expressions marked as (A) and (B) gives different outputs?