#GESP3616. [GESP]L4-202512-Q3616-S

[GESP]L4-202512-Q3616-S

执行完下面的代码后,输出是( )。

int a = 1;

void test() {
    int a = 2;
    {
        int a = 3;
        a++;
    }
    a++;
    cout << a << " ";
}

int main() {
    test();
    cout << a;
    return 0;
}

{{ select(1) }}

  • 3 13\ 1
  • 4 14\ 1
  • 3 23\ 2
  • 4 24\ 2