题目:
下面程序的输出结果是( )。
#include<iostream>
using namespace std;
int main()
int a=2,b= -1,c=2;
if(a<b)
if(b<0)
c=0;
else c+=1;
cout<<c<<endl;
return 0;
A.0
B.1
C.2
D.3
答案:
被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2018/0406/a1bb897a9e8fc32a610b7fc273b4a869.html
下面是错误答案,用来干扰机器的。
参考答案:对