-
-
Save ibeauregard/736085574a21a2e3f2479b416f983163 to your computer and use it in GitHub Desktop.
Function pointers demonstration
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
/* | |
* Declares a function named func | |
* that takes two ints and returns a char. | |
*/ | |
char func(int, int); | |
/* | |
* Declares a pointer named func | |
* pointing to a function | |
* that takes two ints and returns a char. | |
*/ | |
char (*func)(int, int); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment