How many read operations are in this line of code int a = x+x?

Viewed 40

How many read operations are there in code: int a=x+x and int a=x+y. Is there any difference in read operations since for former one it could load data from same memory and add while for second one , I guess it should be two since data had to be loaded from x memory location as well as y memory location.

0 Answers
Related