Computer Science, asked by aryanbharadwaj2566, 1 year ago

Using linear search technique to search an element in an array in C++

Answers

Answered by mrunalsonawane1331
1

Linear search in C


   #include <stdio.h>

   int main()

   {

   int array[100], search, c, n;

   printf("Enter number of elements in array\n");

   scanf("%d", &n);

   printf("Enter %d integer(s)\n", n);

   for (c = 0; c < n; c++)

Similar questions