Using Dynamic memory allocation demonstrate how to resize an array of integers in c++