我刚刚了解到,C 中的加法运算比乘法运算更快。因此,我很好奇(a+b)*c计算速度是否会比 C 更快a*c+b*c?
(a+b)*c
a*c+b*c
c time-estimation computation-theory
c ×1
computation-theory ×1
time-estimation ×1