The code is evaluated from left to right. You take 1 and add something to it. Then you find that the operator to the right of the two has a higher precedence, so you add the result of that expression evaluated from left to right to 1 and Bob's your uncle: 7.
There is no inconsistency between precedences and left‑to‑right.
Kiruthika Dhanajeyan wrote:post increment(++) or pre increment operators have highest precedence..
Well, actually something like () behaves as if it had a higher precedence than the increment operators. The postfix operators have a higher precedence than the prefix operators, and prefix operators higher than multiplicative (* / %).