Hi,
I would like to ask a question on assignment operators.
According to K&R, expr1 is computed only once. Is the difference between
- exp1 = exp1 op exp2
- exp1 op= exp2
as shown in the two trees above?
Additionally, for the computation to be done without a variable for temporary result storage, the ALU must support taking destination to be the same as one source. On ALUs that does NOT support this, would there still be any difference between (1) and (2)?
Zheng