Skip to content

Instantly share code, notes, and snippets.

@jlouis
Created July 17, 2010 19:28
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 jlouis/479771 to your computer and use it in GitHub Desktop.
Save jlouis/479771 to your computer and use it in GitHub Desktop.
#include <stdlib.h>
#include <stdio.h>
int
main(int argc, char **argv)
{
int i = 42;
void *pt = &i;
int *ip = (int*) pt;
printf("%d\n", *ip);
return EXIT_SUCCESS;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment