Skip to content

Instantly share code, notes, and snippets.

@paulbarbu
Created April 19, 2013 20:17
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 paulbarbu/5422944 to your computer and use it in GitHub Desktop.
Save paulbarbu/5422944 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main(){
int bar = 42;
const int *foo = &bar;
foo = (int*)45;
printf("foo: %d\n", foo);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment