Skip to content

Category Archives: C++

Given a number N, the task is to print N even numbers and N odd numbers from 1. Examples: Input: N = 5 Output: Even: 2… Read More
The article explains how to store the reverse of the first text file’s data to a second text file. In this post, it has been… Read More
Given a matrix of size M * N, the task is to find the count of the minimum number of cells that must be flipped… Read More
Nested loop means a loop statement inside another loop statement. That is why nested loops are also called as “loop inside loop“. Syntax for Nested… Read More
The _Find_first() is a built-in function in C++ Bitset class which returns an integer that refers the position of first set bit in bitset. If… Read More
The _Find_next() is a built-in function in C++ Bitset class which returns an integer which refers the position of next set bit in bitset after… Read More
Given a Binary Tree rooted at node 1, the task is to print the elements in the following defined order.  First, print all elements of… Read More
Pointer: A pointer is a variable which contains the address of another variable, i.e., address of the memory location of the variable. Like any variable… Read More
The seekp(pos) method of ostream in C++ is used to set the position of the pointer in the output sequence with the specified position. This… Read More
If we write a class that has no methods in it, and the class does not inherit from another class, the compiler will add six… Read More
C++ is a general-purpose programming language and widely used nowadays for competitive programming. It has imperative, object-oriented and generic programming features. C++ runs on lots… Read More
In this article, I’ll show you how to create your first Hello World computer program in various languages. Along with the program, comments are provided… Read More
Argument An argument is referred to the values that are passed within a function when the function is called. These values are generally the source… Read More
This header file consists of platform-dependent and implementation specific floating point values. A floating point has four parts. Sign Its value can be either negative… Read More
#include is a way of including a standard or user-defined file in the program and is mostly written at the beginning of any C/C++ program.… Read More

Start Your Coding Journey Now!