Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

how to increase array memory in c++

int* newArray = new int[newSize];
... copying from old array ...
int* temp = oldArray;
oldArray = newArray;
delete[] temp;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #increase #array #memory
ADD COMMENT
Topic
Name
6+7 =