#GESP3226. [GESP]L4-202506-Q3226-J

[GESP]L4-202506-Q3226-J

下面 C++ 代码的输出是 1515。

void foo(int x) {
    x += 5;
}

int main() {
    int a = 10;
    foo(a);
    cout << a << endl;
}

{{ select(1) }}

  • 正确
  • 错误