Read carefully for a minute or two and after that you'll be able to solve:
with no trouble.
This example actually is too simple to explain its simplicity. But let's try.
Difference between ++a and a++ post increment, pre increment, old value, new value -
forget that, don't forget, but think simpler.
Four rules:
[1] ++a first increment value and only then place into expression
[2] --a first decrement value and only then place into expression
[3] a++ place value into expression and only then increment
[4] a-- place value into expression and only then decrement
So, what we learned so far:
++a rule number 1, increment first and then place into expression, current a is 10, so becomes:
Next: b++ rule number 3, place into expression and only then increment, what we have now is
Last one no rules, but it is multiplication, so it needs to be calculated first, so what we have is:
Now, go and solve my very first top written expression by applying those 4 rules and you'll see how on Monday you'll want to go to school and share your learnings over the weekend. Use initial a = 10.
I'm going for
coffee now, will wait for your answer