第31558题 单选题
以下C++代码运行后的输出结果是?
#include <iostream>
using namespace std;
void func(int a, int *b, int &c) {
    a = 10;
    *b = 20;
    c = 30;
}
int main() {
    int x = 1, y = 2, z = 3;
    func(x, &y, z);
    cout << x << "," << y << "," << z << endl;
    return 0;
}
A

1,2,3

B

10,20,30

C

1,20,30

D

10,2,3

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