C Program to implement Binary Search

C Program

We are given a sorted array of size n. We have to write program to find an element x in arr[]. In the previous post we have implemented linear search. Now we are going to implement another approach to search it. This approach is called Binary Search. Binary Search – Search an element in sorted […]

What is Namespace in C++

What is Namespace in C++

Consider the Following Example: Problem 1: Suppose we take two variable x but different type one is int type and another is double type in same scope. Following error comes when we run same variable name but different types. Problem with this code is each variable have unqiue entity in there scope. Problem 2: Suppose […]

CRUD Operation in Mongo-cxx

CRUD Operation in Mongo-cxx

What is CRUD operation ? Basically this term use in the database (like SQL,Mongo etc). 2. In Database we generally perform four operation : C – Create : It will be perform create database by Inserting data . R – Read : It will be perform Read operation of database. U – Update : It […]

%d bloggers like this: