What’s the real benefit of using pointers to functions instead of those functions itself? Does it make execution faster ? Or does it provide convenience when it’s passed to another function?
What’s the real benefit of using pointers to functions instead of those functions itself?
Share
It enables you to “select” a component of your business logic around at run time — contrast this with hardcoding the function names, which limits you to choosing which function to use at compile time.