C Programs / Linear search C program

Program Name

Write a C Program for Linear search C program.
Theory
Linear search is used to find the search element sequentially in an array with its position otherwise it shows element not found.
Program Code


Input
Enter number of Elements5
Enter Array Elements 3 2 5 4 1
Enter Search Key5
Output
Element found in 3 position
Online C Compiler (To copy paste and Run the c program)


Home     Back