Skip to content

Instantly share code, notes, and snippets.

@djf
Created November 14, 2008 20:48
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 djf/25086 to your computer and use it in GitHub Desktop.
Save djf/25086 to your computer and use it in GitHub Desktop.
// buffer/dynamic array that holds with 10 doubles
double *x;
x = (double*) malloc(sizeof(double) * 10);
//... sometime later ...
free(x);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment