If I were to create an array with int* array = new int[10];
and fill part of the array with values, how can I check how much of the array is filled? I want to l
The default value of array is indeterminate means garbage.
how can I check how much of the array is filled?
You cannot check, C/C++
has no array bounds check. You have to do it yourself.You need to keep track of the data inserted by a user. When your counter reaches the size of the array, the array is full