Linear Search in C
Here you will find program for linear search in C. Linear search is the simplest searching algorithm which is sometimes known as sequential search. In this algorithm each element of array is compared with the targeted element sequentially. Linear Search in C #include<stdio.h> int main() { int a[20],i,x,n; printf(“How many elements?”); scanf(“%d”,&n); printf(“Enter array elements:\n”); …
