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
printf(“Deletion not possible.n”);
else
{
for(c=position-1;c
Recent Comments