第20329题 单选题
执行给定C++程序后的输出结果是什么

执行下面C++程序后,输出结果为:

void fun(int a, int &b, int *c){
  a += 1;
  b += 2;
  *c += 3;
}

int main(){
  int x = 1, y = 1, z = 1;
  fun(x, y, &z);
  cout << x << " " << y << " " << z;
}
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析