Quote:
Originally Posted by technosavvy

this way even if someone do a typo and write if (0 = toCompareVariable) ..the compiler will produce an error on compilation itself..and thus we are not supposed to scratch our head finding where is code going wrong in case of if (toCompareVariable = 0)

That's Excellent!!! We should take it as practice in our daily coding life to avoid some bugs.