C expressions inherently Boolean?
Posted on 2004-10-19
I'm having trouble understanding something I've read. It says that in C all expressions have a datatype and generate a value and the value of any expression is inherently boolean being either zero/FALSE or non-zero/TRUE.
Also, that function return values are inherently boolean unless specified otherwise.
Since it didn't give any concrete examples, I'm confused as to what that means...
how can look at an expression and determine the boolean value it generates?