#3006. [GESP202306 四级 C++] 第 13 题
[GESP202306 四级 C++] 第 13 题
在下列代码的横线处填写( ),可以使得输出是 "20 10"。
#include <iostream>
using namespace std;
void xchg(_______________) { // 在此处填入代码
int t = *x;
*x = *y;
*y = t;
}
int main() {
int a = 10, b = 20;
xchg(&a, &b);
cout << a << " " << b << endl;
return 0;
}
{{ select(1) }}
int x, int yint * x, int * yint a, int bint & a, int & b