double pow(double, exponent)

Interesting, but irrelevant, since C/C++ does not have an exponentiation operator.

Well, that certainly explains why a C function written like that is not the same as a built-in exponentation operator form a language such as python. That's probably what the OP was puzzled about.