News for hackers. Stuff that matters.
Re:Both true and false: a Zen moment with C by noselasd on Thursday June 28, 2012 @04:07AM (#4170727)
This is true for integers and pointers. The bool type (introduced in C99) though, is only required by C as to have the value 0 or 1. If you assign 55 to a bool, there are rules that implicitly convert that to a 1. If an implementation chooses to make bool only store 0 and 1, and you somehow manages to squeeze another value into that bool, it's perfectly fine for this to be undefined behavior.

There are no comments on this comment yet.