Created
June 26, 2013 01:16
-
-
Save ankit-rakha/5863965 to your computer and use it in GitHub Desktop.
pointers to functions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Define function | |
func1(){ | |
... | |
} | |
// Pointer to function | |
void *func1_ptr = func1; | |
// Call to function using pointer | |
(*func1_ptr) (); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment