#include<iostream.h>
#include<process.h>
#include<conio.h>
int findpos(int[],int,int);
void main()
{
int AR[50],item,n,index;
cout<<"How many elements do u want to create array with?";
cin>>n;
cout<<"enter array elements(must be sorted in Asc order)";
for(int i=0;i<n;i++)
cin>>AR[i];
char ch='y';
while(ch=='y'||ch=='y')
{
cout<<"enter element to be inserted....";
cin>>item;
if(n==50)
{ cout<<"overflow!!";
exit(1);

Designed By Blogger Templates | Templatelib & Distributed By Blogspot Templates