单项选择题

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