Skip to content

Instantly share code, notes, and snippets.

@eru
Created July 2, 2012 12:30
Show Gist options
  • Save eru/3033004 to your computer and use it in GitHub Desktop.
Save eru/3033004 to your computer and use it in GitHub Desktop.
#include <stdio.h>
void crazy_function(int *i) {
*i = 20;
}
int main(void) {
int i;
i = 10;
crazy_function(&i);
printf("%d\n",i);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment