Solution:-
i = 10;
i = (++i)/(i++)
++i is preincrement the value of i before executing the statement.
i++ is post increment the value of i after executing the statement
Here ++i = 11
i = (++i) / (i++); // 11/11 = 1
After executing the above statement post increment operator (ie i++)
is excuted. Becaz of that i's value is incremented to 2.