#3273. [GESP202603 四级 C++] 第 5 题
[GESP202603 四级 C++] 第 5 题
执行下面程序后输出为( )。
int x = 3;
void f(int& x){
x += 2;
}
int main(){
int x = 10;
f(x);
cout << x << " " << ::x;
}
{{ select(1) }}
12 310 512 510 3
执行下面程序后输出为( )。
int x = 3;
void f(int& x){
x += 2;
}
int main(){
int x = 10;
f(x);
cout << x << " " << ::x;
}
{{ select(1) }}
12 310 512 510 3