第21942题 单选题
给定C++函数定义,执行对应调用语句后变量x的值为?

有两个函数fun1()fun2()定义如下,在主函数中有int x = 1; x = fun1(x);调用,求此时x的值。

int fun1 (int x){
    x ++;
    fun2(x);
    return x;
}
void fun2 (int x){
    x ++;
}
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析