Posts from C++

Calculate factorial of a number in C++

By Siddharth Shankar Debata

Here, we will learn to find the factorial of a number in C++. We generally need to calculate factorial of numbers in mathematics, while finding permutations and combinations, algeb.... Read More

Passing object by reference in C++

By Siddharth Shankar Debata

Today, we will learn about passing objects to a function by reference method in C++. In C++ programming, many times we need to reflect the changes in actual parameters. So, here we.... Read More

Print prime numbers in C++

By Siddharth Shankar Debata

In this tutorial, we will get to know how to print prime numbers in C++. We will take a number limit from the user and display all the prime numbers less than or equal to that numb.... Read More

Find maximum number formed using digits of a number in C++

By Siddharth Shankar Debata

In this tutorial, we will learn how to find the maximum number that can be formed using digits of a number in C++. So, we will manipulate the digits of the given number and find ou.... Read More

Nth root calculator in C++

By Siddharth Shankar Debata

In this tutorial, we are going to calculate the Nth root of an integer number using a C++ program. In mathematics, many times, we need to calculate the Nth root. So, we will learn .... Read More

Split Comma Separated String In C++

By Abhishiek Bhadauria

Welcome!. In this tutorial, we will learn how to split a comma separated string in the C++ programming language. We will split the comma-separated string by using two methods:- By .... Read More

How to find day from date in C++

By Mohit G

In this article, we will see how to find the day of the week corresponding to a given date in C++. For finding the day from a given date, we have a formula, i.e., (d+m+y+[y/4]+c ) .... Read More

Inline Function in C++ with example

By Meghana Thatikonda

In this tutorial, we will see a simple example of inline function in C++. Inline functions in C++ Inline functions are treated differently by the compiler. So, they usually run mor.... Read More