第31705题 单选题
以下C++代码运行后的输出结果是?
#include <iostream>
using namespace std;
void swap(int a, int b) {
    int temp = a;
    a = b;
    b = temp;
}
int main() {
    int x = 3, y = 5;
    swap(x, y);
    cout << x << "," << y << endl;
    return 0;
}
A

3,5

B

5,3

C

3,3

D

5,5

程序运行统计
暂无判题统计
提交0次 正确率0.00%
答案解析