I let gcc compile the following example using -Wall -pedantic:
gcc
-Wall -pedantic
#include int main(void) { printf(\"main: %p\\n\",
This is essentially the only portable way to print a function pointer.
size_t i; int (*ptr_to_main)() = main; for (i=0; i