added function_pointer program

demonstrates the use of function pointers