Originally Posted by shabbir
I am not sure about the error but I can explain about the other 2.
When anything becomes zero its equal to false or else its true. In C there is nothing bool but everything is with respect to 0 and Non zero. 0 being false and Non Zero is true.
Say if you have something like if(1) will always be true.
OK, i understand this. So I used the postfix i++ instead of ++i (in the same programme) and though i became 0 the loop never ended. Why is that?