// Code derived from Stroustrup's PPP2 book// § 8.6.1 Expression evaluation// -and beginning on p 292#include<iostream>#include<vector>usingnamespacestd;vector<int>v(10);// v is globalvoidf(inti,intj){cout<<i<<' '<<j<<'\n';}intmain(){inti=4;v[i]=++i;// don't: undefined order of evaluationv[++i]=i;// don't: undefined order of evaluationintx=++i+++i;// don't: undefined order of evaluationcout<<++i<<' '<<i<<'\n';// don't: undefined order of evaluationf(++i,++i);// don't: undefined order of evaluationcout<<x<<'\n';}