From 45a2c148db675282cf0de4c6262ee2fea2d942e5 Mon Sep 17 00:00:00 2001 From: srinidhi Date: Mon, 1 Oct 2018 01:08:49 +0530 Subject: [PATCH] Fixes #44 --- binary_search.c | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) 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