首页 > 试题广场 >

阅读下列程序,写出运行结果: #include usi

[问答题]
阅读下列程序,写出运行结果:
#include <iostream>
using namespace std;
int main()
{
int a = 1, b = 2;
  bool x, y;
  cout << (a++)+(++b) << endl;
  cout << a % b << endl;
  x = !a>b;  
  y = a-- && b;
  cout << x << endl;
  cout << y << endl;
}

推荐
4
2
0
1
发表于 2018-05-07 11:03:22 回复(0)

1+3=4


2 % 3=2


0


2 && 3=1

发表于 2020-03-14 14:12:54 回复(0)