Function pointers can be used for a wide variety of applications including the implementation of state machines. Just like any tool, it may not always be appropriate to use function pointers for a ...
Knowing how references really differ from pointers should help you decide when to use references and when to stick with pointers. In C++, references provide many of the same capabilities as pointers.