diff --git a/binary_search.c b/binary_search.c index 4f6773ea..81b3f8fc 100644 --- a/binary_search.c +++ b/binary_search.c @@ -1,16 +1,10 @@ #include #define MAX 100 -void main() + + +void binarysearch(int array[],int x,int n) { -int array[MAX],l,r,mid,n,x,flag=0,i; -printf("enter the no of elements\n"); -scanf("%d", &n); -printf("enter the elements of the sorted array\n"); -for(i=0;i