Which one will execute faster, if (flag==0) or if (0==flag)?

后端 未结 16 791
灰色年华
灰色年华 2020-11-30 17:12

Interview question: Which one will execute faster, if (flag==0) or if (0==flag)? Why?

16条回答
  •  粉色の甜心
    2020-11-30 18:05

    Build two simple programs using the suggested ways.

    Assemble the codes. Look at the assembly and you can judge, but I doubt there is a difference!

    Interviews are getting lower than ever.

提交回复
热议问题