Is there a way of using the compound assignment operator to achieve something like this:
a = (a * 10) + b;
Initially I tried the following:
a *= 10 + b;
but this is equivalent to:
a = a * (10 + b)
Just curious. Ran across this today. This is not homework.