Why is true == 0x1 and false == 0x0?

Started by
31 comments, last by Frankie68 21 years, 11 months ago
quote:Original post by Sandman
Original post by SabreMan
I''m not really sure what you''re on about with the value "staying in memory".


Sometimes, a very small 1 can look almost identical to a large 0. If you only have a single 1 to look at, and it just happens to be a small 1, then the computer might mistake it for a 0 and get confused.


Computers dosent get confused! Only error.
Advertisement
He was just kidding, he didn''t know what I meant...
And so on and so forth...

[ C++ FAQ Lite | ACCU | Boost | Python | Agile Manifesto! ]

This topic is closed to new replies.

Advertisement