Write A C Program To Accept An Array of
Write A C Program To Accept An Array of
#include <stdio.h>
void main()
{
int vectx[10];
int i, n, pos, element, found = 0;
if (found == 1)
{
for(i=pos; i< n-1; i++)
{
vectx[i] = vectx[i+1];
}
} /* End of main() */
/*---------------------------------------------------
Output
Run 1
Enter how many elements
5
Enter the elements
30
10
50
20
40
Input array elements are
30
10
50
20
40
Enter the element to be deleted
35
Element 35 is not found in the vector
Run 2
Enter how many elements
4
Enter the elements
23
10
55
81
Input array elements are
23
10
55
81
Enter the element to be deleted
55
The resultant vector is
23
10
81
--------------------------------------------------------*/