Skip to content

Instantly share code, notes, and snippets.

@slevy1ster
Forked from sgolemon/gist:9997388
Created April 5, 2014 21:37
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 slevy1ster/9998379 to your computer and use it in GitHub Desktop.
Save slevy1ster/9998379 to your computer and use it in GitHub Desktop.
#include <stdio.h>
void hi(int a, float b) {
printf("a = %d\n", a);
printf("b = %f\n", b);
}
int main(void) {
void (*hello)(float,int) = (void(*)(float,int))hi;
hi(1,2);
hello(2,1);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment