Answers for "set memory for array c++"

C++
0

how to increase array memory in c++

int* newArray = new int[newSize];
... copying from old array ...
int* temp = oldArray;
oldArray = newArray;
delete[] temp;
Posted by: Guest on October-15-2021

Browse Popular Code Answers by Language