Skip to content

Instantly share code, notes, and snippets.

@RolandWarburton
Created September 26, 2019 07:58
Show Gist options
  • Save RolandWarburton/a52afe554f50bc190c6dda926dcf1a22 to your computer and use it in GitHub Desktop.
Save RolandWarburton/a52afe554f50bc190c6dda926dcf1a22 to your computer and use it in GitHub Desktop.
malloc
// arrcontainer cc = arrcontainer(20);
int* ip = (int* )realloc(cc, sizeof(int)*10);
// int* ip = (int* )calloc(8, 1000);
ip[1] = 10;
cout << *ip;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment