#include<stdio.h>
#include<conio.h>
#include<iostream.h>
void main()
{
int n,a[100];
clrscr();
cout<<"How many numbers, you input in array : ";
cin>>n;
for(int i=0;i<n;i++)
{
cout<<"\na["<<i+1<<"] = ";
cin>>a[i];
}
int p;
cout<<"\nEnter any position to insert : ";
cin>>p;
if(p<0 || p>n)
cout<<"\nInsert is not possible, please give value greater than 0 & less than "<<n;
else
{
p=p-1;
for(i=n-1;i>=p;i--)
a[i+1]=a[i];
cout<<"\nEnter any number to insert : ";
cin>>a[p];
n++;
}
cout<<"\nAfter insert, Array contains : ";
for(i=0;i<n;i++)
cout<<"\n\na["<<i+1<<"] = "<<a[i];
getch();
}
///////////////////////////////////////////////////////////////////////////
Copy & paste this code in your TC & run, then you will get output.......
If you have any problem please comment below.........