单选题
适中
#23973
执行下面代码,输出结果为?( ) #include <iostream> using namespace std; void f(int &b){ b = b…
执行下面代码,输出结果为?( )
#include <iostream>
using namespace std;
void f(int &b){
b = b + 5;
}
int main(){
int x=3;
f(x);
cout << x << endl;
return 0;
}
答案与解析
正确答案:C
这道题暂未补解析。