实例 C 语言逻辑运算符 逻辑或

x
 
#include <stdio.h>
int main() {
  int x = 5;
  int y = 3;
  
  // Returns 1 (true) because one of the conditions are true (5 is greater than 3, but 5 is not less than 4)
  printf("%d", x > 3 || x < 4);
  return 0;
}
                    

输出结果

1