Computer Science, asked by Amritas, 6 months ago

Write a C program to perform binary search and linear search in the same program using functions

Answers

Answered by acsahjosemon40
0

 \huge\mathtt{{\colorbox{silver} {ANSWER~}}}

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