实例 C 语言比较运算符 >

x
 
#include <stdio.h>
int main() {
  int x = 5;
  int y = 3;
  printf("%d", x > y); // returns 1 (true) because 5 is greater than 3
  return 0;
}
                    

输出结果

1