delete[] arr // calls destructors for each element in array // before calling array deallocating function