第28190题 单选题
以下C++代码的运行输出结果依次为?
#include <iostream>
using namespace std;

int g_a = 100;

void test() {
    int g_a = 200;
    {
        int g_a = 300;
        cout << g_a << endl;
    }
    cout << g_a << endl;
}

int main() {
    test();
    cout << g_a << endl;
    return 0;
}
A

300 200 100

B

300 100 200

C

100 200 300

D

200 300 100

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