Linear Search

Posted on January 5, 2015 by Edit

Linear search, also known as sequential search, is a process that checks every element in the list sequentially until the desired element is found.

Program to perform search on set of numbers using Linear search technique

Code

Output

Enter size of the array :: 8

Enter elements of the array :: 102 52 7 141 12 56 102 156

Enter the number to be searched :: 102

102 is present at location 6.
Tags : cjavajavascript
This website is made possible by displaying online advertisements to our visitors.
Please consider supporting by disabling your ad blocker.
loading comments...