I read that the pow(double, double) function is defined in "math.h" but I can't find its declaration.
Does anybody know where this function declared? And where is it implemented in C?
Reference:
http://publications.gbdirect.co.uk/c_book/chapter9/maths_functions.html
Its here and also here. Also go on wikipedia
You will find pow there.
The actual implementation of
pow
may vary from compiler to compiler. Generally, math.h (or a vendor-specific file included by math.h) provides the prototype forpow
(i.e., its declaration), but the implementation is buried in some library file such as libm.a. Depending on your compiler, the actual source code forpow
or any other library function may not be available.