2 ms·
Comparisons are intuitively boolean Are comparisons in general boolean? I think specific operators are, but that's because they are asking a particular boolean
by userbinator 10y ago
Comparisons are intuitively boolean
Are comparisons in general boolean? I think specific operators are, but that's because they are asking a particular boolean question. A general "compare X and Y" doesn't seem like it should ever be "true" or "false" (because what would those mean? Different --- in what way, less, greater, or both --- or equal?)
As the sibling comment alludes to, comparisons are really a form of subtraction to the hardware, and C makes this fact very obvious.