#3094. [GESP202406 四级 C++] 第 1 题
[GESP202406 四级 C++] 第 1 题
下列代码中,输出结果是( )。
#include <iostream>
using namespace std;
int func(int x, int y)
{
int a = x, b = y;
int t;
t = a;
a = b;
b = t;
cout << a << " " << b << " ";
}
int main()
{
int c, d;
c = 12;
d = 24;
func(12, 24);
cout << c << " " << d << endl;
}
{{ select(1) }}
12 24 24 1224 12 12 2412 12 24 2424 24 12 12