+ 2
Can anyone provide practical usage of funtion pointers?
Example codes provided are not practical enough for my understanding.This can be better understood if real practical scenario is provided
1 Odpowiedź
+ 9
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.
To know what a callback mechanism is just visit this link👇
https://stackoverflow.com/questions/6807376/call-back-routine