Skip to content

Instantly share code, notes, and snippets.

@ibeauregard
Last active April 2, 2021 20:29
Show Gist options
  • Save ibeauregard/736085574a21a2e3f2479b416f983163 to your computer and use it in GitHub Desktop.
Save ibeauregard/736085574a21a2e3f2479b416f983163 to your computer and use it in GitHub Desktop.
Function pointers demonstration
/*
* 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