Skip to content

Instantly share code, notes, and snippets.

@macmade
Created November 25, 2011 02:00
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 macmade/1392643 to your computer and use it in GitHub Desktop.
Save macmade/1392643 to your computer and use it in GitHub Desktop.
int * x;
int * y;
int z;
x = ( int * )calloc( 10, sizeof( int ) );
y = &( x[ 5 ] );
x = ( int * )realloc( x, 20 * sizeof( int ) );
z = *( y );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment