#4004. [GESP202409 七级 C++] 第 11 题

[GESP202409 七级 C++] 第 11 题

下面程序的输出为( )。

#include <iostream>
#include <cmath>
using namespace std;
int main() {
    cout << (int)log(8) << endl;
    return 0;
}

{{ select(1) }}

  • 2
  • 3
  • 8
  • 无法通过编译。