Posts from C++

Lowest common ancestor (LCA) in a Binary tree in C++

By Zeeshan Alam

In this tutorial, we will learn about the lowest common ancestor in a binary tree in C++. We will also see the pseudocode to how to find LCA in a binary tree. We will also see exam.... Read More

How to add comments in C++

By Ranjeet V

This tutorial will teach you how to add comments in your C++ program. Comments are used in a program to explain the code. Comments have no real effect on your program. The compiler.... Read More

An Overview of C++ Programming Language

By Ranjeet V

Let’s take a quick view of the C++ programming language. This is an overview of C++. C++ is an extension of C Programming Language, which was created by Dennis Ritchie for th.... Read More

How to delete in a Linked List and its implementation in C++

By Deepshi Sharma

In this post, I am going to discuss, How to delete in a Linked List and its implementation in C++. Deletion in a linked list can also be performed in 3 ways: Deleting a start node .... Read More

Pointers to Functions in C++

By Shanigaram Mahesh

In this tutorial, we will learn about pointers to functions in C++, why we use pointers in functions. Let us see with some examples. Pointers to functions in C++ A pointer to a fun.... Read More

How to find unique numbers in an array using C++

By Vishal Kumar

In this tutorial, we are going to learn about how to find unique numbers in an array using C++. We can use various methods to solve this problem but in this tutorial, we are going .... Read More

Print a particular nth Fibonacci number in C++ up to range 10^18

By Vishal Kumar

In this tutorial, we are going to learn how to print a particular Fibonacci number up to range 10^18 in C++. We are going to use a hash map for this particular problem. As we know .... Read More

Aggregation in C++

By Paaritosh Sujit

Aggregation in C++ (commonly called as a has-a relationship), is a process in which one class defines a second class as an entity reference. It is a method of reusability of classe.... Read More