Data Structures Lab Manual / Linear Search C Program

Program Name: Write a C Program for Linear Search in Data Structures
Theory
The Array is seached sequentially for a key element in the array.If their display
the element position.
Program Code



Input:
Enter Number of Elements: 5
Enter Array Elements: 2 4 6 1 9
Enter Searched Element: 6
Output:
Element Found at Position =3


Home     Back