# Cpp programs

## Find min and max in array c++

Welcome dear readers! we are going to discuss a c++ program to find min and max elements in the array. Basically, it is a practice program that will help us understand different variations of array traversal for different purposes. Let’s suppose you have an array containing the salaries of employees. This program can help us …

## Binary search algorithm in c++

Welcome to programmopedia! This article’s topic is going to be the searching of arrays again but this time we are going to search array using binary search algorithm in c++. We have already discussed a basic linear search algorithm but that was not time efficient. Binary search makes searching fast and time-efficient as it doesn’t search …

## Linear search algorithm in c++

Welcome to programmopedia! In this article, we will learn about linear search in c++. We are going to write c++ programs to search arrays using a linear search algorithm. Linear search is not the only searching algorithm available but it’s the easiest and basic one. It’s not as efficient as other searching algorithms like binary search …

## Digital clock program in c++

Welcome back, readers! this post is going to be very special. We are going to discuss a c++ program to build a digital clock in c++. It will help us to practice conditional statements and loops which are essential concepts of c++ programming. Our digital clock program will get local time using time() function in “time_t” and “tm” type variables. …

## How to sort array in c++

Welcome dear programmers! We are about to discuss the sorting of array in c++ in ascending as well as descending order. Sorting of data basically means arranging or organizing the data in a particular fashion. There are numerous algorithms available but we are using selection sort because its basic, simple and easy. A good understanding …

## 3×3 matrix multiplication in c++

Hello dear programmers! Do you think it’s hard to multiply matrices in c++? I don’t think so. In this post, I will explain 3×3 matrix multiplication in c++ in a very simple way. It will help you enhance your understanding of arrays and loops. These concepts seem too scary to most programming students but after understanding matrix multiplication, they will enjoy …

## Palindrome program in c++

We are back again with another c++ program. In this article, we will discuss the palindrome program in c++. We will write the program using loops as well as recursion. As it is already clear, looping and recursion are very important concepts of programming. These two solutions to solve the palindrome problem is helpful to practice loops and …

## BMI program in c++

Welcome dear readers! Are You conscious about your health and usually get worried when you feel obese? In this article, we will write a c++ BMI program that will tell you whether you are obese, underweight, or fit. It will help us to practice our variables and conditional statements understanding.  The program will ask the user to enter his weight and …

## Transpose of a matrix in c++

Welcome again dear readers! In this post, we will learn to build a c++ program to take the transpose of a matrix. It will help us practice our array’s conceptual understanding. It’s because a matrix in c++ is actually a two-dimensional array of elements. The program takes the order of the matrix as input. A 2d array …

## How to convert decimal to binary in c++

In this article, we will learn how to convert decimal to binary in c++ in detail. It is highly recommended to go through all the examples stated in the article and try the code yourself. We have designed different diagrams and code examples to make this problem a piece of cake for our readers. Why binary and …

Scroll to Top