C Program To Perform Binary Search On 10 Elements
C program to implement binary search using recursion. Posted by rahulvr. #include binarysearch(int a[],int n,int low,int high). (“Enter the elements: n”); for(x=0;x<no;x++). Posted on October 4, 2012, in C and tagged binary search, c, c pprograme, recursion. Bookmark the permalink. This search algorithm works on the principle of divide and conquer. For this algorithm to work properly, the data collection should be in a sorted form. Implementation in C Live Demo #include #define MAX 20 // array of items on which linear search will be conducted.