正如我上面所说,这是不好的做法吗?在 ASM 中它会是什么样子?我的意思是,我不知道它是否被翻译成这样:
arr[0] = value; arr[1] = value;
或者像这样:
arr[1] = value; arr[0] = arr[1];
其中第二个显然效率更低(imm vs mem)。
提前致谢。
c operators operator-precedence assignment-operator
assignment-operator ×1
c ×1
operator-precedence ×1
operators ×1