最近我遇到了这个程序。
#include <stdio.h> int main() { int a = 10, b = 20, c; c = a > 2 + b != 6; printf("%d", c); }
输出背后的逻辑是1什么?
1
c evaluation operator-precedence
c ×1
evaluation ×1
operator-precedence ×1