主页
C++
C++ 关系运算符
demo_oper_compare2
运行 ❯
×
更改方向
保存代码
更改主题
#include
using namespace std; int main() { int x = 5; int y = 3; cout << (x != y); // returns 1 (true) because 5 is not equal to 3 return 0; }
1