Write a C program to perform binary search and linear search in the same program using functions
Answers
Answered by
0
Linear search using function in C
#include<stdio.h>
int linear_search(int*, int, int);
main()
{
int array[100], search, c, n, position;
printf("Enter the number of elements in array\n");
scanf("%d",&n);
printf("Enter %d numbers\n", n);
..
....
......
Hope it helps uh!
Stay blessed✨
Similar questions
Math,
3 months ago
Social Sciences,
3 months ago
Chemistry,
3 months ago
Computer Science,
6 months ago
Environmental Sciences,
10 months ago
English,
10 months ago