Posts from C++

std::next_permutation and std::prev_permutation in C++

By Vidhi Jain

Let’s learn about std::next_permutation and  std::prev_permutation in C++. Let’s first know about permutations: We know that a permutation is the n! possible arrangeme.... Read More

Virtual Destruction using shared_ptr in C++

By Saurabh Salunkhe

In this tutorial, we will discuss the virtual destructor using shared_ptr in C++. Also, we will implement a C++ program that will demonstrate the working of shared_ptr. What is sha.... Read More

max_element in C++

By Astha Awasthi

In this C++ tutorial, we are going to discuss the max_element in C++. To find the maximum element in a complete array or other container or to find the maximum element in a sub-par.... Read More

Check whether kth bit is set or not in C++

By Kunal Kamble

Hello, friends in this tutorial we will write a program to check the kth bit of a number is set or in C++. We have a number say N we will check if the kth bit of the number is set .... Read More

How to check if an array is stack sortable in C++

By Himanshu Baranwal

In this tutorial, we will learn about how to check, using the C++ programming language, whether a given array is stack sortable or not. An array P is said to be stack sortable only.... Read More

Increment (++) and Decrement (- -) Operator Overloading in C++

By Meghana Thatikonda

In this tutorial, we will learn what is operator overloading and how to overload increment ++ and decrement — operators along with its implementation in C++. Operator Overloa.... Read More

How to use std::normal_distribution in C++

By Vidhi Jain

In this tutorial, will learn about the normal distribution class in C++. Header file used: <random.h> We use it to generate random numbers according to the Normal random numb.... Read More

Check if a number is multiple of 9 using bitwise operators in C++

By Vivek Kumar Jaiswal

Hello everyone, In this tutorial, we will discuss how to check if a number is multiple of 9 using the bitwise operators in C++. There are many other ways to check for the same as w.... Read More

Related Posts