下面程序的输出结果是( )
#include<iostream>
using namespace std;
int main()
{int a=1,b=-2,c=3;
if(a<b)
if(b<0)c=0;
else c+=1;
cout<<c<<endl;
return 0;
}
下面程序的输出结果是( )
#include<iostream>
using namespace std;
int main()
{int a=1,b=-2,c=3;
if(a<b)
if(b<0)c=0;
else c+=1;
cout<<c<<endl;
return 0;
}
A.
0
B.
2
C.
3
D.
4
正确答案是C
扫描二维码免费使用微信小程序搜题/刷题/查看解析。
版权声明:本文由翰林刷题小程序授权发布,如需转载请注明出处。