Created
September 26, 2019 07:58
-
-
Save RolandWarburton/a52afe554f50bc190c6dda926dcf1a22 to your computer and use it in GitHub Desktop.
malloc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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