第32199题 单选题
给定如下C++代码,运行后的输出结果正确的是?
#include <iostream>
#include <cmath>
using namespace std;
int main() {
    int a = 2, b = 3;
    double res1 = pow(a, b);
    int res2 = 2 ^ 3;
    cout << res1 << "," << res2 << endl;
    return 0;
}
A

8,1

B

8,8

C

6,1

D

8.0,8

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