我不明白为什么下面的代码打印出来1.
1
1 && 0是不是true && false- > false?
1 && 0
true && false
false
为什么不打印0?
0
#include <iostream> using namespace std; int main(){ cout << 1 && 0; return 0; }
c++ operator-precedence
c++ ×1
operator-precedence ×1