No. The
new operator may allocate memory a different way, so even if it works on your system, it might not work on other peoples'. Better to allocate using the function
malloc() and deallocate using
free():
Code:
int * array = malloc(10 * sizeof(int));
array = realloc(array, 15 * sizeof(int));
free(array);