I came up with this question from following answer: Efficiency of postincrement v.s. preincrement in C++
There I've found this expression:
a = b++ * 2;
They said, above b++
can run parallel with multiplication.
How b++
run parallel with multiplication?
What i've understood about the procedure is: First we copy b's value to a temporary variable , then increment b , finally multiply 2 with that temporary variable. We're not multiplying with b but with that temporary variable , then how it will run parallel?
I've got above idea about temporary variable from another answer Is there a performance difference between i++ and ++i in C++?