Skip to content

Instantly share code, notes, and snippets.

@schweigert
Created November 26, 2015 18:56
Show Gist options
  • Select an option

  • Save schweigert/5733447e287c9474eee3 to your computer and use it in GitHub Desktop.

Select an option

Save schweigert/5733447e287c9474eee3 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <stdlib.h>
int main (void){
int a = 2;
int* p = NULL;
p = &a;
printf ("%d\n", p);
*p = 3;
printf ("%d\n", a);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment