第28123题 单选题
运行以下C++代码,最终的输出结果是什么?
#include <iostream>
using namespace std;
int func1() {
    cout << "func1";
    return false;
}
int func2() {
    cout << "func2";
    return true;
}
int main() {
    if (func1() && func2()) {
        cout << "yes";
    }
    return 0;
}
A

输出func1func2yes

B

输出func1yes

C

输出func1

D

程序编译报错

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