#GESP2407. [GESP]L4-202406-Q2407-S

[GESP]L4-202406-Q2407-S

下列代码中,输出结果是( )

#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 12
- 24 12 12 24
- 12 12 24 24
- 24 24 12 12