Binary Search | Logical Programming in C | by Mr.Srinivas ** For Online Training Registration: ▻ Call: +91-8179191999 Subscribe to our …
Table of Contents
Images related to the topic naresh i technology c language

Binary Search | Logical Programming in C | by Mr.Srinivas
Search related to the topic Binary Search | Logical Programming in C | by Mr.Srinivas
#Binary #Search #Logical #Programming #MrSrinivas
Binary Search | Logical Programming in C | by Mr.Srinivas
naresh i technology c language
See all the latest ways to make money online: See more here
See all the latest ways to make money online: See more here
Nice explanation sir thanku
great explaination
Please upload quick sort
Best Ever Explanation Of Binary Search
Awsome teaching sir
Super sir Ji
Dandalu saamy
simply AMAZING!
#include <stdio.h>
int main()
{
int arr[20],key=61,low,high,mid,n,found=0;
printf("enter the size of array: ");
scanf("%d",&n);
printf("enter elements into array");
for(int i=0;i<n;i++)
{
scanf("%d",&arr[i]);
}
low=0;
high=n-1;
mid=(low+high)/2;
while(low<=high)
{
if(key<arr[mid])
{
high=mid-1;
}
else if(key>arr[mid])
{
low=mid+1;
}
else if(key==arr[mid])
{
printf("element found @ loc %dn",mid);
found=1;
break;
}
}
return 0;
}
Sir please do video on binary search for recursive and nonrecursive programs pls pls pls pls sir
Sir at last you please send total code so that it will be easy..
Sir
If n= 12 there is two mid points
Sir, pls make a vedio on matrix multiplication program
LEGEND!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Sir you are great
Sir, Does your code works, if my key is 1st element or the last element
Sir ur really great teacher
I never saw this kind of wonderful teaching in my life .
Anni chusa…. Kani edi best
Clear cut explanation and wonderful teaching.
Thanks sir.
Sir are you from Telugu.
you are a great teacher….today you saved me…thank u sir
superb sir…..
Sir It will fail if elements are 9,9,9,9,9.
It is going to return index as 2
Sir… Sir anthe… Super ga explain chesaru sir
Thank you sir
Sir agar value found nhi hui to ➡
Sir if number not found then ?
Sir what about not found number