Linear Search
Linear Search
#include <conio.h>
#include <iostream.h>
void main()
{
clrscr();
element=search(a,key,s);
if(element!=-1)
cout<<"\nKey found at location ["<<element<<"]" ;
else
cout<<"\nKey was not found";
getch();
}
URL: http://ravianeducation.blogspot.com
E-Mail: [email protected]
Farhan: 03008855006