Quote:
Originally Posted by state View Post
Hello IndiraP

Suppose I have the following
Code:
int a=5
if(a)
...
What would such absurd looking loc(lines of code) mean?Well if you look at it closely it means "If the a has a definite value(any value other than zero) then the condition is true else the condition is false".Even a negative value or a floating point value is taken as truth value.
Thank u ..