Can you explain the output of the following program:
#include <iostream>
using namespace std;
int main()
{
int a=10;
int x=(a++)+(++a)+(a++)+(a++)+(++a);
cout<<x<<endl;
x+= (++a);
cout<<x<<" "<<a<<endl;
}
the output is:
62
78 16