第32191题 单选
在C++中,不考虑自定义函数实现,仅使用C++标准库特性计算2的3次幂,以下写法正确的是?
A

int res = 2 ^ 3;

B

int res = pow(2, 3);

C
#include <cmath>
int res = static_cast<int>(pow(2, 3));
D

int res = power(2, 3);

程序运行统计
暂无判题统计