Question: Write a Linear search program to use a recursive linearSearch function to perform the linear search of the array. The function should receive an integer
Write a Linear search program to use a recursive linearSearch function to perform the linear search of the array. The function should receive an integer array, the size of the array and the search key as arguments. If the search key is found, return the array index; otherwise, return -1.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
