I want to print out a function pointer using cout, and found it did not work. But it worked after I converting the function pointer to (void *), so does printf with %p, such
Casting pointers to (void*) to print them to cout is the right thing (TM) to do in C++ if you want to see their values.
(void*)
cout