Tag Archives: C Program Linear Search in Array

C Program Linear Search in Array

C Program Linear Search in Array #include <stdio.h> int main() { int a[100], item, i, n; printf(“Enter number of elements in array[Maximum 100]=”); scanf(“%d”, &n); for (i = 0; i < n; i++) { printf(“Enter Element Number %d in Array=”, i+1); scanf(“%d”, &a[i]); } printf(“Enter a number to search in array=”); scanf(“%d”, &item); for (i… Read More »

Loading