First code:
if(i==0) {// do instructions here}
Second code:
if(0==i) { // do instructions here }
What
Functionally, they are the same in C; I'm not sure about other languages where ugly things like operator overloading come into play.
Stylistically, the latter is extremely counter-intuitive and personally I find it extremely ugly. The point is to get the compiler to throw an error when you accidentally write =
instead of ==
, but good compilers have an option to warn you about this anyway so it's unnecessary.