C program to delete an element from a desired position

 

Sample Input
Enter no of elements :5
Enter 5 elements :1 2 3 4 5
Enter location of the element to be deleted :2
Sample Output
The array elements before deletion:
1
2
3
4
5
The array elements after deletion:
1
3
4
5

 

You may also like...