#GESP3226. [GESP]L4-202506-Q3226-J
[GESP]L4-202506-Q3226-J
下面 C++ 代码的输出是 。
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) }}