[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Expression statements
- From: Sean Conner <sean@...>
- Date: Mon, 16 Aug 2010 15:20:44 -0400
It was thus said that the Great Jonathan Castello once stated:
> I'm pretty sure (though not 100%) that that's just for C
> compatibility, since win32 is a C API after all. C didn't have
> dedicated true/false keywords before, and I *think* that true == 1 and
> false == 0 still.
Technically in C, 0 is considered false, and anything but 0 is considered
true. A small, but critical distinction.
K&R C (very old version) and C89 don't have a dedicated boolean type, but
the newer C99 does.
-spc