#include <iostream>
int main() {
std::cout << (2 == 2) && (10 < 5);
}
This code prints 1
(true), but I expect it to print 0
(false).
I have tried to run the same code in several compilers, and they all give the same surprising result.