Reputation: 11
I did not understand well how could i delete an elment in anywhre in array then put an elment in the same position So there will be no empty spaces could anyone explain an simpleexample
Upvotes: 0
Views: 34
Reputation: 27793
Try this
array[n] = newValue
This replaces the n-th element with a new value.
Upvotes: 1