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