Skip to content

Instantly share code, notes, and snippets.

@sgolemon
Created April 5, 2014 20:02
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save sgolemon/9997388 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;
}
@sgolemon
Copy link
Author

sgolemon commented Apr 5, 2014

a = 1
b = 2.00000
a = 1
b = 2.00000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment