Explain the Concept of Function Pointer with example? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 17

Explain the Concept of Function Pointer with example?

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

18th Nov 2019, 11:28 AM
ROHIT KANOJIYA
ROHIT KANOJIYA - avatar
2 Answers
+ 12
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.
20th Nov 2019, 2:56 PM
abdiwahab jama said
abdiwahab jama said - avatar
+ 5
I have cooked up a little example with explanations. https://code.sololearn.com/czshfBy1X2E4/?ref=app
18th Nov 2019, 12:00 PM
HonFu
HonFu - avatar