Help creating function

i need to write a function which doubles the size of a dynamic array of string. The existing array may have data. In this case, i need to be sure to copy the data to the new array. any hints?

This is how you could copy oldArr to newArr.
1
2
3
for ( int i = 0; i < oldArrSize; i++ ) {
	newArr[i] = oldArr[i];
}
Thanks. Now to double a dynamic array is my next step.
Topic archived. No new replies allowed.