问题详情
有如下程序:
main
{ int a=2,b=-1.c=2;
if(a<0)if(b<0)c=0;
else c++;
printf("%d\n",c);
}
该程序的输出结果是()。
A.0
B.1
C.2
D.3
请帮忙给出正确答案和分析,谢谢!