The use of function pointers?

c

Possible Duplicate:
What is the point of function pointers?

I am trying to understand where in the practical scenarios function pointers are used.
and also can anyone please give me a practical example where we have to pass function itself as an argument to another function.

Best Answer

Function pointers can be useful when you want to create callback mechanism, and need to pass address of a function to another function.

They can also be useful when you want to store an array of functions, to call dynamically for example.