initially a=0,++a increments a to 1 and --a decrements it to 0 so x will be equal to zero..according to me the output should be 1,1,0 howevr the ans is 2,0,0
1 2 3 4 5 6 7 8 9 10
#include<iostream>
usingnamespace std;
int main()
{
int a=0,x;
x = ++a * --a;
cout<<++a<<endl<<a++ <<endl<< x <<endl;
}