int i5 = 7;
System.out.println("5 #"+ (i5-- * (i5++ - ++i5)));
I get -14 when I run this. So I'm wondering whats going on. Tell me if this is right.
the first i5 is 7 then i5 is decremented to 6 the second i5 is 6 and is incrmented to 7 and the third i5 is incremented to 8 and then the math is executed. So this ends up being 7 * (6 - 8). I wonder if there is some other reasoning that would get me to -14 or my view is correct. Thanks in advance.