General
Binary Search Algorithm
The binary search algorithm is very popular search algorithm. It is also known as half-interval search or uniform binary search as it split the array of data into two equal parts recursively until a solution is found. The array in binary search must be sorted. Binary search employ an algorithm design technique known as divide …
Algorithms – Search Techniques Overview
Searching for information is a basic task that we all do. We search for an item in a grocery list, or look for a telephone number from the telephone directory. A common and popular example of searching is Google search where we search for links to web sites such as Notesformsc, or look for specific …
JavaScript Unary Operators
In JavaScript and many other programming languages such as Java, C++, etc, a unary operator is that which takes only one operand and perform certain operation on it. Syntax Unary Operators in JavaScript There are many unary operators in JavaScript programming . Here is a list with description. Operators Name Description + unary plus attempt …
JavaScript Assignment Operator
The JavaScript assignment operator assigns a value to a JavaScript variable.The value of a variable or an expression is assigned to another variable, the variable that receives the value is always on left hand side and expression whose value is assigned is on right hand side of the assignment operator. Syntax The JavaScript assignment operation …
C++ Reference Variable
C++ language allows you to create a new type of variable called reference variable. What Is A Reference Variable ? A variable that store values is called a value variable. The C++ reference variable is an alias for a value variable. It refers to the memory location of the value variable like pointer. Any changes …
C++ String Basics
C++ strings store textual information. The string variable has a sequence of characters enclosed by double quotes. In C++ string basics, we cover following topics. Types of strings How to initialise strings ? How to read input strings ? Types Of Strings A string is a character array terminated by a null (\0)character. The C++ …
Evaluating Postfix Expression Using Stack
Previous Next The postfix expression is a notation for expression used in computers where operator comes after the operands in the expression. It is also known as reverse polish notation. In this example, you will learn evaluating postfix expression using stack. Suppose A and B are two operand and ‘+’ is the operator. We humans …
C Program to Check Eligibility of Students for Engineering or Medical Admission
Previous Next This program is a mini-project in C programming written using Dev C++ version 5, you can use any standard C compiler to compile the following program. To help you understand this program, we have the following sections – problem definition, flowchart, program source code, and verified output. In this C program, we want …
C Program to Check Eligibility of Students for Engineering or Medical Admission Read More »
C++ Integer Data Type
Data types describe the kind of data so that computer can store or manipulate them appropriately. This is the reason to declare a data type in C++ programming. Data types are also necessary because data items such as numbers are used in expressions. If there is a mismatch, for example – integer and real numbers …