Deleting an element

Report a typo

The steps for deleting an element from a fixed-size array are given below. Please sort them in the correct order:

Put the items in the correct order
Copy all elements from the old array to the new array except the one you want to delete
Read the array length of the old array. Let's call it L
Create a new array of length (L - 1)
Delete the old array
___

Create a free account to access the full topic