使用 math.h 或 cmath 头文件中的对数函数,表达式 log(128) 的结果类型为 double、值约为 7.0。
math.h
cmath
log(128)
double
7.0
正确 √
错误 ×