Quote Originally Posted by rajeshs View Post
If any body knows about advantages of using function pointers please help me?
Function pointers are used when a value isn't enough --- you can use them to pass around different behaviours. The classic examples are qsort() and callbacks. In OO world, FP were replaced by functional objects (a.k.a. functors).