Given array of integers and we have to delete (remove) an element from given position.
To delete element from array: first we will traverse array to given position and then we will shift each element one position back.
The final array will not contain that element and array size will be decreased by 1.
For example we have list of integers:
10 12 15 8 17 23
Now we delete element from 3rd position then list will like this:
10 12 8 17 23
Consider the example:
Output