-
-
Save JIElite/d429aedbc515973ad46cd353a43d2388 to your computer and use it in GitHub Desktop.
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
#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