scanf("% "&num)for( = ; < ; ++if(arr[inumfor( - >=ij--arr[ + arr[ ]arr[inumbreakn + printf("\ the array after insertion of % is "num)for( = ; < ; ++printf("\ arr[% % "iarr[ ])getch()return output enter the number of elements in the array arr[ arr[ arr[ arr[ arr[ enter the number to be inserted the array after insertion of is arr[ arr[ arr[ arr[ arr[ arr[ deleting an element from an array deleting an element from an array means removing data element from an already existing array if the element has to be deleted from the end of the existing arraythen the task of deletion is quite simple we just have to subtract from the upper_bound figure shows an algorithm to delete an element from the end of an array for exampleif we have an array that is declared as int marks[ ]the array is declared to store the marks of all the students in the class nowsuppose there are students and the student with roll number leaves the course the score of this student was stored in marks[ we just have to decrement the upper_bound subtracting from the upper_bound will indicate that there are valid data in the array howeverif we have to delete an element from the middle of an arraythen it is not trivial task on an averagewe might have to move as much as half of the elements from their positions in order to step set upper_bound upper_bound occupy the space of the deleted element step exit for exampleconsider an array whose elements are arranged in ascending order nowsuppose an element figure algorithm to delete the last element of has to be deletedprobably from somewhere in the an array