From df99ef4cb1b7476fe6f8accf8ec611c4ee6a89c1 Mon Sep 17 00:00:00 2001 From: Akshay Kumar Date: Sat, 10 Mar 2018 23:13:44 +0530 Subject: [PATCH] Update interpolation_search.c --- Searches/interpolation_search.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Searches/interpolation_search.c b/Searches/interpolation_search.c index 3749bc2d..a0c85770 100644 --- a/Searches/interpolation_search.c +++ b/Searches/interpolation_search.c @@ -30,7 +30,7 @@ int main() // be conducted. int arr[] = {10, 12, 13, 16, 18, 19, 20, 21, 22, 23, 24, 33, 35, 42, 47}; - int n = sizeof(arr)/sizeof(arr[0]); + int n = sizeof(arr)/sizeof(arr[0]); //To get length of an array int x = 18; // Element to be searched int index = interpolationSearch(arr, n, x);