Posts from C++

Forward Declaration in C++

By Ramneeq Sodhi

Here we are going to make a C++ program using forward declaration. So what is Forward declaration? Forward declaration refers to a prior declaration of a function, class, variable.... Read More

Find the maximum GCD of the siblings of a Binary Tree using C++

By Richa Sirwani

GCD (Greatest Common Divisor) is the largest number that divides two numbers. In this tutorial, we will find the maximum GCD of the siblings of a binary tree using C++. The vector .... Read More

Mutual Friendship of Classes in C++

By Mallika Gupta

Here in this tutorial, we will learn about what is Mutual Friendship in classes and how it can take place with the C++ code example. It is one of the most famous concepts in Object.... Read More

Memory Leaks in C++

By Palani M

In this article, we will learn about memory leaks in C++. We will see a basic introduction about memory allocation and its types. We will then proceed to learn about memory leaks i.... Read More

Segregate even and odd nodes in a Linked List C++

By Akash Dileep

In this tutorial, we will see how to segregate even and odd nodes in a linked list in C++. Segregate even and odd nodes mean, given a linked consisting of even and odd nodes, arran.... Read More

Traversal in a Circular Linked List in C++

By Nishant Saxena

In the following explanation, we will discuss how to traverse a Circular Linked List in C++. What we know We know how to traverse a linked list, we simply start from the head and t.... Read More

How to Count pairs whose products exist in array in C++

By Deepanjan Bose

Hello everyone, in this article, we will learn how to count pairs whose products exist in an array in C++. Also, given an array and we have to count pairs. For Example: Example 1: .... Read More

Container to store Different Object Type in C++

By Tanu Kumari

In this tutorial, we will learn about the Container to store Different Object Type in C++. We will learn about the container to store Different Object Type in a very cool and easy .... Read More