Binary Search Program in C

Write a code to implement binary search program in c. Given a sorted array, we have to write a code to search an element in an array using binary search.

Binary Search

A Binary Search is used to search an element in a sorted array.  In binary search, we first calculate the mid position of an array.  Then, After that we compare element to be search to the middle element an array. If a value matches with the middle element then the index is returned otherwise the algorithm repeats if the value is less than or greater than the middle element.

A Binary search algorithm is efficient than the linear search algorithm. The time complexity of binary search is O(log(n)). 

htaccess Tutorial

In this htaccess tutorial series, you will learn about htaccess configuration and it’s usage.

htaccess Tutorial

htaccess refers to Hypertext Access. It is a directory level configuration file, used by Apache Web Server.  htaccess file contains set of directives, which is read by Apache web server and apply to the directory on which this file is placed.