Skip to content

Instantly share code, notes, and snippets.

@hogelog
Created March 25, 2010 08:30
Show Gist options
  • Save hogelog/343314 to your computer and use it in GitHub Desktop.
Save hogelog/343314 to your computer and use it in GitHub Desktop.
#include <stdio.h>
void f1() {
puts("f1");
}
int main(int argc, char **argv) {
void *p = f1;
printf("p: %p\n", p);
printf("f1 address: %p\n", &f1);
f1();
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment