Created
December 5, 2016 15:57
-
-
Save AndyNovo/a0692d91c10ad870436aeffe04d8905d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
int * data = (int *)malloc(100*sizeof(int)); | |
data[0] = 5; | |
printIntLine(data[0]); | |
data = (int *)realloc(data, (130000)*sizeof(int)); | |
if (data != NULL) | |
{ | |
data[0] = 10; | |
printIntLine(data[0]); | |
free(data); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment