Vivekananda College of Engineering and Technology

Department of Electronics & Communication Engineering

Back to Experiments
Experiment 4
C Programming Lab

Aim

To search a key element in an array using linear search.

Algorithm

1. Read number of elements.
2. Read array elements.
3. Read key element.
4. Compare key with each element.
5. Display result.

Use or Edit the given C template

Output

Output will appear here after compilation.
C Programming Virtual Lab - Experiment 4