[单选题]

下面程序的输出结果是()。includeusing namespace std;int main(){ int a=2,b=£­1,c=2;

下面程序的输出结果是( )。 #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<<end1; return 0; }

A.0

B.1

C.2

D.3

参考答案与解析:

相关试题

下面程序的输出结果是()。#includeusing namespace std