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
Physics,
4 months ago
English,
4 months ago
Math,
4 months ago
Computer Science,
8 months ago
Environmental Sciences,
1 year ago