Hi All,
i have small problem in understanding the post and pre increments in c++. Could you please help me in understanding how exactly the equation is executed. Below is the code:
Code:#include <iostream> using namespace std; int main() { int i=0,j=0; i =2; j = ++i + i++ + i++ + i + ++i + i++; cout << " \nThe value of j is : " << j; return 0; }