Interview question: Which one will execute faster, if (flag==0) or if (0==flag)? Why?
if (flag==0)
if (0==flag)
If at all there was a difference, what stops compiler to choose the faster once? So logically, there can't be any difference. Probably this is what the interviewer expects. It is actually a brilliant question.