aboutsummaryrefslogtreecommitdiff
path: root/Project1/c_array.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Project1/c_array.cpp')
-rw-r--r--Project1/c_array.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/Project1/c_array.cpp b/Project1/c_array.cpp
index 1423273..962c785 100644
--- a/Project1/c_array.cpp
+++ b/Project1/c_array.cpp
@@ -19,12 +19,16 @@ void DoubleArraySize(int*& array, size_t SIZE)
}
delete[] array;
-
array = newArray;
-
-
+ //memset(array, 0, SIZE * sizeof(array[100]));
+ //memset(array, 0, SIZE * sizeof(array));
SIZE *= 2;
+ //for (auto i = 102u; i < SIZE; ++i)
+ //{
+ // memset(array, 0, SIZE * sizeof(array));
+ //}
+
PrintArray(array, SIZE);
}