Skip to content

Instantly share code, notes, and snippets.

@hkolbeck
Created March 12, 2013 07:57
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 hkolbeck/5141022 to your computer and use it in GitHub Desktop.
Save hkolbeck/5141022 to your computer and use it in GitHub Desktop.
#include "stdio.h"
void turrible(int a, int b) {
int* ptr = (&a);
while (*++ptr != a);
*ptr = b;
}
int main() {
int i = 125;
turrible(i, 17);
printf("%d\n", i);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment