Skip to content

Instantly share code, notes, and snippets.

@JIElite
Created September 4, 2016 03:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JIElite/d429aedbc515973ad46cd353a43d2388 to your computer and use it in GitHub Desktop.
Save JIElite/d429aedbc515973ad46cd353a43d2388 to your computer and use it in GitHub Desktop.
#include <stdio.h>
// fptr is a pointer, point to a function
void (*fptr) ();
// an empty function
void test() {
;
}
int main() {
fptr = test;
printf("test: %x, fptr: %x\n", test, fptr);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment