#include //C++ example #include #include //for sqrt using namespace std; int main() { double (*const p)(double) = sqrt; cout << "p == " << reinterpret_cast(reinterpret_cast(p)) << "\n" << "sqrt == " << reinterpret_cast( reinterpret_cast( static_cast(sqrt))) << "\n\n"; double d = (*p)(2.0); cout << "d == " << d << "\n" << "sqrt(2.0) == " << (*p)(2.0) << "\n\n"; d = p(2.0); cout << "d == " << d << "\n" << "sqrt(2.0) == " << p(2.0) << "\n"; return EXIT_SUCCESS; }