Posts from C++

Advantages of reference variables over pointer variables in C++

By Ranjeet V

This tutorial is about the advantages of reference variables over pointer variables in C++. A reference variable is an alias for a variable whereas a pointer variable points to an .... Read More

setw() function in C++

By Aayush Kumaria

Today we will be learning what setw() function in C++ is and how it’s used. This setw() function belongs to the iomanip library of C++. Syntax: setw() setw(int n) n is the pa.... Read More

How to read data from CSV file in C++

By Arjun Singh

Today we are going to perform reading operations on a CSV file using C++. Let’s learn how to read data from CSV file in C++. Reading a CSV file in C++ CSV file is a comma-sep.... Read More

Range Minimum Query in Segment Tree using C++

By Keshav J

In this tute, we will discuss the Range Minimum Query in Segment Tree using C++. Before heading into the tute, make sure that you’ve understood the sum of range in the segmen.... Read More

XOR of range in Segment Tree using C++

By Keshav J

In this tute, we will discuss how to query the XOR of the given range in a segment tree using C++. Read till the end to get a clear idea of the Segment Tree. Let’s use the array.... Read More

Lazy Propagation in Segment Tree using C++

By Keshav J

In this tute, we will discuss Lazy propagation in Segment tree using C++. If you haven’t gone through the basics of implementing segment trees, head straight to sum of range .... Read More

How to Sort Array Elements Alphabetically in C++

By Aayush Kumaria

Hello, today we would be learning how to sort elements in an array alphabetically in C++. So read on… Sort Array Elements Alphabetically in C++ We sort elements in a data set.... Read More

How does Shift Operators Work in C++

By Aayush Kumaria

Hey guys, today we will be learning about shift operators and how they work in C++. What is a Shift Operator? Shifting is of 2 types: Left shift and Right shift. In the Left shift,.... Read More

Related Posts