About this document
Recursive Binary Search in C by Punit Rana is a document available to read on EtoBox.
The program uses recursive binary search to search for a given element in an array. It takes user input of 10 array elements and the element to search for. It calls the recursive binary search function, passing the array, element to search for, lower bound and upper bound. The function recursively searches midway between lower and upper bounds, returning the index if found or adjusting bounds and calling itself again until the element is found or lower bound exceeds upper bound.
- Author
- Punit Rana
- Language
- EN