-->
当前位置:首页 > 题库

单选题:What is the output of the following program?

Luz5年前 (2021-05-10)题库858
What is the output of the following program? @[C](2)
```
int main()
{
int a = 2, b = -1, c = 2;
if(a < b)
if(b < 0)
c = 0;
else c++;
printf("%d\n",c);
return 0;
}
```


A. 0
B. 1
C. 2
D. 3




A.0
B.1
C.2
D.3


答案:C