For this program assignment I am supposed to create dynamic arrays with initial size of two, and ask the user for input to fill the array. Once the array is filled it should then multiply by two, and copy the old inputs of the old array into the new array, while deleting the old dynamic array. How would I achieve this.
Okay i understand that i need to make a function to test it. The testing function will be pretty much a if function. If size=size then *2 it. But where does the whole deleting the old array come in to play?