Can anyone provide practical usage of funtion pointers? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 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

28th Dec 2019, 3:04 AM
Sandalu Adhasooriya
Sandalu Adhasooriya - avatar
1 Antwort
+ 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
28th Dec 2019, 3:08 AM
Arsenic
Arsenic - avatar