C Program to Delete Elements from an Array

This C program will delete element from an array from the given position.Elements need to be shifted when deleting from array
[cc lang=”c”]
#include
main()
{
int array[100],position,c,n;
printf(“Enter number of elements in arrayn”);
scanf(“%d”, &n);
printf(“Enter %d elementsn”, n);
for(c=0;c=n+1)
printf(“Deletion not possible.n”);
else
{
for(c=position-1;c

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *