What is Function Pointer?

Pointer is used to store the address of the variable.
In case of function pointer, pointer will store the address of the function to call. We may have a different functions with same prototype which will have the different functionality. This function will be decided at the run time based on the address assigned to Function pointer.


No comments: