Function and Pointers

Learn how to pass pointers to functions.

Passing pointers to the function

In a previous lesson, we discussed the following two ways of passing actual parameters to the formal parameters in the function:

  • Pass by value
  • Pass by reference

However, there is another way to pass arguments to the function that is passed by reference with a pointer parameter.

The function pointer parameter receives the address of the ...