第29974题 单选题
以下C++代码的运行结果是?
#include <iostream>
#include <cmath>
using namespace std;
int main() {
    double x = -3.7;
    int res = abs(ceil(x)) + floor(fabs(x));
    cout << res << endl;
    return 0;
}
A

6

B

7

C

5

D

4

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