Skip to content

Instantly share code, notes, and snippets.

@sgolemon
Created April 5, 2014 20:02
Embed
What would you like to do?
#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