function pointers

The idea here is that we can declare pointers to functions, then invoke the function off the pointers, treating them just like regular functions. This works because all functions have a start point in memory, all we are doing it storing that address. The syntax is a lot goofy, but this is extremely powerful. I have provided some C examples below.

sample code
struct of function pointers
functions using function pointers
arrays of function pointers
a simple menu

Links

function-pointer.org (offsite)