Core c++ concepts of Pointers

Pointer to  Function.

As we use pointer to carry address of variable,also we discussed  pointer to array ,where we assigned pointer to array(pointer pointing to first address of array), similarly pointer can also be used to point to  function by carrying address of the function it points.

Declaration of Function Pointer


data_type(*ptr_name)(arg_list)


data type: data type /return type of member function.

*ptr name: name of the pointer which is pointing to function.

arg_list: List of arguments that function is having.

Read moreCore c++ concepts of Pointers