Linear Search using CPP.
The user inputs the number of elements he wants to enter in the array, and then based on that he inputs the array elements.
Then he enters the number to be searched.
Then the array is searched linearly, for the element.
If found the index of the element is returned.
If not found, the user is conveyed so.
Linear Search using CPP. The user inputs the number of elements he wants to enter in the array, and then based on that he inputs the array elements. Then he enters the number to be searched. Then the array is searched linearly, for the element. If found the index of the element is returned. If not found, the user is conveyed so.