x******r 发帖数: 139 | 1 suppose是C code
a + = 2 与 a= a+2
这两句转成汇编码后有啥区别?
谢谢 | q*n 发帖数: 1203 | 2 hmm, is a+=2 still considered as a better style nowadays? | p******f 发帖数: 162 | 3
Is "a + = 2" valid c code? I will discuss "a += 2" now.
"a += 2" evaluates "a" once, while "a = a+2" evaluates "a" twice.
This should make no difference normally, unless "a" is something
strange, such as a macro.
【在 x******r 的大作中提到】 : suppose是C code : a + = 2 与 a= a+2 : 这两句转成汇编码后有啥区别? : 谢谢
|
|