getting a function address - function pointers

        void f(); 
void (*p_fun)() = f;
To get the memory address of a function, use the function name without parentheses. You may optionally include an ampersand:
        void f(); 
void (*p_fun)() = & f;
Related

Learn more about function pointers