Posts from C++

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

Date and Time in C++

By Animisha Dalal

In this tutorial, we will learn about the date and time in  C++. Date and Time in C++ For various programs, we need to access the time and the date, along with other calendar-rela.... Read More

Namespaces in C++

By Animisha Dalal

In this tutorial, we will learn about Namespaces in C++. Namespaces in C++ Let’s start with understanding what is namespace and why do we need it. A namespace is a declarativ.... Read More

Related Posts