Example 1: *p++
In this example there 2 operators are used * and ++ both are unary operators so they have same priority now we have to check the associativity. The associativity of unary operator is right to left so right operator will execute first and then left one so ++ will be executed first then *. So the equivalent expression will be (*(p++))
If the expression be ++*p then equivalent expression will be (++(*p)).
Example 2: a = 15 – 2*6
In this example 3 operators are used = , – and * among them according to the precedence table * has higher priority then – and then = so 2*6 will be executed first and the expression will be a = 15 – 12 . Then – will be executed and a = 3 . Now = will be in action as = is a assignment operator it puts whatever value it gets on his right side to the left side variable so it will assign 3 inside variable a .