function pointer
nounUK /ˈfʌŋkʃən ˈpɔɪntə/
US /ˈfʌŋkʃən ˈpɔɪntər/
A function pointer is a special variable that holds the address of a piece of code so the computer can run it later.
The program uses a function pointer to decide which button action to run.
OTHER MEANINGS
2. In C and C++, a variable whose value is the memory address of a function, allowing indirect calls.
He passed a function pointer to qsort so it could compare elements.
3. A way to store a menu of actions and choose one at runtime instead of using long if-else chains.
The event table maps each key to a function pointer.
4. A reference used to connect a signal or event to the code that should handle it.
The GUI toolkit stores a function pointer for the click handler.