3 ms·
Yeah- but the problem of poorly-defined result type isn't present for comparison operators, since a bool is a b... oh, hold on, C. Since an int is an int. Sigh.
by XMPPwocky 7y ago
Yeah- but the problem of poorly-defined result type isn't present for comparison operators, since a bool is a b... oh, hold on, C. Since an int is an int. Sigh.
- slavik81 7y agoIn C, 'a' is an int so most of those are not char/char operations. In C++, 'a' is a char and the comparison result is a bool, though it doesn't really make a difference in that function.
- thaumasiotes 7y agoWhen you're sorting, you're generally comparing two variables to each other, as opposed to comparing one variable to a literal constant.