{int num1 = 5; int num2 = 6; int num3; num3 = ++num2 * num1 / num2 + num2; System.out.println(num3);} //12 The compiler gives the num3 = 12, but how do I get that value? when I try to get that num3 value I got 6(by without using compiler). Both value of num2++ and ++num2 gives the same, but when I use following code it gives a different value. Why I got different values. what are the steps for get those num3 values (without using compiler?)
num3 = num2++ * num1 / num2 + num2; //11