Linear search in C
Linear search in C to find whether a number is present in an array. If it's present, then at what location it occurs. It is also known as a sequential search. It is straightforward and works as follows: we compare each element with the element to search until we find it or the list ends
output:
Enter number of elements in array
3
Enter 3 integer(s)
1
2
3
Enter a number to search
3
3 is present at location 3.
need an explanation for this answer? contact us directly to get an explanation for this answer