how will the following code work
int a=10;
int i=a+a+++a++;
cout<<i;
the output is shown as 32 .
while if the code would have been as follows:
int i, a=10;
i=a+a+++a++;
cout<<i;
the output is 30.
why is this difference????
increment operator in C++
|