Below are 2 conditional operations. I just want to know the difference between them and which one "ll be a better programming practice and why?
if(i==0)
and
if(0==i)
...
The second is "better" in practice. If you forget to put two equal signs( which can happen if you type very fast for example ), it will generate an error, you are assigning a value to a constant.
thnx...