Necessity of Function pointers [duplicate]

This question already has an answer here:

I am very much interested in cracking minute things in C.

Function pointer:

From what i know, a function pointer is nothing more than a C variable which points the address of a function as a normal C variable. So that we can call the function using pointer also.

Questions:

  1. What is the necessity of using function pointers rather than using functions alone?
  2. Will it do any advanced thing which a normal function cannot do?


Source: c#

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.