Login to ask a question from Arrays

Write a program in C to delete an element at desired position from an array.

Write a program in C to delete an element at desired position from an array.

#include 
void main()
{
  int arr1[50],i,pos,n;
  printf("\n\nDelete an element at desired position from an array :\n");
     printf("---------------------------------------------------------\n");  
  
  printf("Input the size of array : ");
  fflush(stdout);
  scanf("%d", &n);
    /* Stored values into the array*/
   printf("Input %d elements in the array in ascending order:\n",n);
   for(i=0;i....
Show More
Previous Question Next Question
🔗

Similar Questions

From Arrays · C programming

View All
WhatsApp