As I'm sitting here going through some old posts on the differences between the new/delete vs. malloc/free approaches to allocating memory I came up with a question.
What is the new/delete approach to realloc? How is this accomplished?
Let's say I create an int array ...
Code:int *x = new int ; /*And later in my program I *may* need to reallocate that int to 10 elements. How can this be done with the new/delete approach?*/