Tag Archives: Array

Linear Search

In this tutorial, you will learn about linear search. Linear search is a very simple and basic search algorithm. It is basically a sequential search algorithm. We have to write a C Program which finds the position of an element in an array using Linear Search Algorithm. Examples : Input : arr[] = {40, 60, 10, 20, 50,… Read More »

Multiplication of two numbers in C++

In this article, we have discussed various methods to multiply two numbers in C++. These are simple program, you can learn them easily. Method-1 : With Hardcoded Inputs Output: 30 Method-2 : With user Inputs Output: Output depends on user inputs, that will be multiplication of both numbers. Method-3 : With class Output: Output depends on user inputs,… Read More »

Division of two numbers in C++

In this article, we have discussed various methods to divide two numbers in C++. These are simple program, you can learn them easily. Method-1 : With Hardcoded Inputs Output: 2 Method-2 : With user Inputs Output: Output depends on user inputs, that will be division of both numbers. Method-3 : With class Output: Output depends on user inputs,… Read More »

Subtraction of two numbers in C++

In this article, we have discussed various methods to subtract two numbers in C++. These are simple program, you can learn them easily. Method-1 : With Hardcoded Inputs Output: -1 Method-2 : With user Inputs Output: Output depends on user inputs, that will be subtraction of both numbers. Method-3 : With class Output: Output depends on user inputs,… Read More »

Addition of two numbers in C++

In this article, we have discussed various methods to add two numbers in C++. These are simple program, you can learn them easily. Method-1 : With Hardcoded Inputs Output: 11 Method-2 : With user Inputs Output: Output depends on user inputs, that will be sum of both numbers. Method-3 : With class Output: Output depends on user inputs,… Read More »

Introduction of Array Data Structure

Array is collection of items having same data type stored in contiguous memory location. An array is derived data type in C programming language which can store similar types of data in contiguous memory locations. Data may be primitive type, (i.e., int, char, float, double), address of union, structure, pointer, function or another array. Array implementation is important… Read More »