Lets say, I have:
int *p; p = new int[5]; for(int i=0;i<5;i++) *(p+i)=i;
Now I want to add a 6th element to the array. How do I do it?