•Calling
functions using pointers
–Declare
a function pointer like this:
•bool ( *compare ) ( int,
int )
•Where bool is the return
type of your function and int, int are the argument types
–Execute
function with either
•( *compare ) ( int1, int2
)
–Dereference
pointer to function to execute
– OR
•compare( int1, int2 )
–User may
think compare name of actual function in program
•
•