expression solving

evaluate the expression with initial values a=5, b=-5
e=a-7%b*(a+=2)+b++
also kindly explain how to go about it.
The different operators do have precedence rules, which describe who gets evaluated first. Break the expression into pieces and evaluate the pieces in order.

However, in this case if you would write a tiny program that evaluates your expression, then your compiler should say something about sequence points and undefined results.
Can you plz solve this one for me? with steps so that then i can refer to it for other questions.
What if there is no solution?
Topic archived. No new replies allowed.