第29972题 单选题
以下C++代码执行后的输出结果是?
#include <iostream>
#include <cmath>
using namespace std;

int main() {
    int a = -10;
    cout << abs(a) + sqrt(16) + pow(2, 3) - fabs(-2.5) << endl;
    return 0;
}
A

19.5

B

17.5

C

24.5

D

22

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