On 4 Dec 2010 at 5:37, Sean Conner wrote:
Nope. !b will turn 0 to 1, and anything not 0 to 0.
!!-1 = !(!-1) = !(0) = 1
!!123 = !(!123) = !(0) = 1
!!0 = !(!0) = !(1) = 0
Or, to put it another way, the prefix ! operator has the same effect
as a comparison to zero.
i.e. !(expression) is equivalent to ((expression) == 0)
--Chuck