+12

Explain the Concept of Function Pointer with example?

In this Case what is the type of Pointer which can point to a Function?

2 Answers

New Answer

+10

A function pointer, also called a subroutine pointer or procedure pointer, is a pointer that points to a function. As opposed to referencing a data value, a function pointer points to executable code within memory.

+5

I have cooked up a little example with explanations. https://code.sololearn.com/czshfBy1X2E4/?ref=app