第30257题 单选题
以下C++代码的运行输出结果是什么?
#include <iostream>
using namespace std;
int main() {
    int a = 5, b = -2, c = 0;
    if (a) {
        if (b > 0)
            cout << "情况1";
        if (!c)
            cout << "情况2";
        else
            cout << "情况3";
    } else {
        cout << "情况4";
    }
    return 0;
}
A

情况1

B

情况2

C

情况3

D

情况4

程序运行统计
暂无判题统计
提交0次 正确率0.00%
答案解析