2 ms·
And one that has the right answer but explains it incorrectly: > What is the result of this expression? (or multiple ones) [1 < 2 < 3, 3 < 2 < 1] __[true,
by chc 13y ago
And one that has the right answer but explains it incorrectly:
> What is the result of this expression? (or multiple ones)
[1 < 2 < 3, 3 < 2 < 1]
__[true, true]__ [true, false] error other
> Implicit conversions at work. both true and false are greater than any number.
True and false are greater than any number? What? This is not only not correct, it is contradicted by the answer. The real explanation is that 1 < 2 is true, which converts to 1, and thus less than 3; meanwhile, 3 < 2 is false, which converts to 0, and thus less than 1. This is actually the same result you would get in C.