#3210. [GESP202506 四级 C++] 第 17 题
[GESP202506 四级 C++] 第 17 题
下面C++代码的输出是 15。
void foo(int x) {
x += 5;
}
int main() {
int a = 10;
foo(a);
cout << a << endl;
}
{{ select(1) }}
- 正确
- 错误
下面C++代码的输出是 15。
void foo(int x) {
x += 5;
}
int main() {
int a = 10;
foo(a);
cout << a << endl;
}
{{ select(1) }}