Binary Search - Online Code

Description

If your are interested to know the working of the binary search then this is the example for you

Source Code

/* binary.c */
#include <stdio.h>
/* thisfunction implements the binary search algorithm */
int binary_search(int list[], int key, int n)
{
	int flag = 0;
	int high = n-1, low = 0, mid;

	mid = (high + low) / 2;
... (login or register to view full code)

To view full code, you must Login or Register, its FREE.

Hey, registering yourself just takes less than a minute and opens up a whole new GetGyan experience.




Comments

No comment yet. Be the first to post a comment.