I am very curious why I can use math functions in C ++ without including "math.h". I can not find the answer with google search.
Here is a simple code that I am executing. Everything compiles and works.
#include <iostream>
using namespace std;
int main()
{
const float PI = acosf(-1);
cout << PI << endl;
return 0;
}
source
share