Deletion based on position

#include<iostream.h>
#include<conio.h>


void del(int a[],int n,int pos)
{
    int i;
    for(i=pos;i<n;i++)
        {
        a[i-1]=a[i];
        }
}
void main()
{
clrscr();
int a[50],i,n,pos;
cout<<"Enter the number of elements ";
cin>>n;
cout<<"Enter the elements";
for(i=0;i<n;i++)
    {
    cin>>a[i];
    }
cout<<"Enter the postion of deletion";
cin>>pos;
del(a,n,pos);
cout<<"After Deletion";
for(i=0;i<n-1;i++)
    {
    cout<<a[i]<<",";
    }
getch();
}