
please wait
|
|
1,2,3,4,5,0,0,0,5,0.
So I'm doing something right because the array is doubling in size! My first question is where is the 5
in the 9th spot coming from and how do I fix it to get it to display a 0?count
(0 through 9) will be valid for array2 but not the original array1 which only has 5 elements. Going out of bounds on an array may have undefined results.