C Program For Linear Search
C is a general-purpose, procedural computer programming language supporting structured programming, lexical variable scope, and recursion, with a static type system. By design, C provides constructs that map efficiently to typical machine instructions.
This Is A C-Program To Illustrate The Linear Serch Operation
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.
The Operations/Error Illustrated :
1. Element Search
2. Searching The Location (Index)
The User Will Be Prompted To :
1. Enter No. Of Elements
2. Enter Elements
3. Enter Number To Search
The GCC File Also Have Been Pushed.