• Write a program to perform insertion operation on Array.
    -  /* Prg for insertion. */
   #include<stdio.h>
   #include<conio.h>
   void insert (int[], int, int, int);
   main()
   {
int array[100], size, i, num, position;
printf ("Enter size of an array = ");
scanf ("%d",&size);
printf ("Enter %d element :-\n",size);
for (i=0;i<size;i++)
{
    scanf ("%d",&array[i]);
}
printf ("Enter the number which you want to insert in array = ");
scanf ("%d",&num);
printf ("Enter the postion where you want to insert the number in array = ");
scanf ("%d",&position);
insert (array, size, num, position) ;
   }
   void insert (int array[], int size, int num, int position)
   {
int i;
for (i=size;i>=position;i--)
{
    array[i]=array[i-1];
}
array[i]=num;
for (i=0;i<size;i++)
{
    printf ("%d = [%d]\n",i,array[i]);
}
   }