Posts from C++

Postfix to Prefix Conversion in C++

By Sakshi Gupta

In this tutorial, we will learn Postfix to Prefix Conversion in C++. Postfix: If the operator appears in the expression after the operands, then it is called a postfix expression. .... Read More

Count total consonants and vowels in a given sting in C++

By Yash Shakya

This C++ program is able to count total number of consonants and vowels present in a given string by using loop and conditional statements. This problem is based on the application.... Read More

Print Pascal’s triangle of Nth row in C++

By Alok Singh

In this tutorial, we will learn how to print Pascal’s triangle in C++ with an algorithm. Pascal’s triangle is a 2-D array (2-D triangular array) of binomial coefficient.... Read More

Move all the zeros to the end of array in C++

By Alok Singh

In this problem, we will get an array of size ‘n’. we need to move all the zeros to the end of the array without changing the order of non-zero numbers. Let’s tak.... Read More

Perform right rotation on a matrix by k times in C++

By Alok Singh

In this tutorial, we will learn how to perform right rotation on a matrix by k times in C++ with a solved example, algorithm. What is the meaning of “perform right rotation o.... Read More

Merge two linked lists in C++

By Alok Singh

In this tutorial, we will learn how to merge two linked lists with algorithm and C++ program. Merging of two linked lists is the same as the concatenation of two strings. But this .... Read More

Calculate age from date of birth in C++

By Animisha Dalal

In this tutorial, we will learn how to calculate age from date of birth in C++. Calculate age from date of birth in C++ In the following program, we will take as input the present.... Read More

fma() function in C++

By Animisha Dalal

In this tutorial, we will learn about fma() function in C++. This is one of the popular functions among the Mathematical functions in C++. fma stands for Fused Multiply-Add. Thi.... Read More