Skip to content

Category Archives: C++ Programs

In C++, assigning a function to a variable and using that variable for calling the function as many times as the user wants, increases the… Read More
OpenGL is a cross-language, cross-platform API for rendering 2D and 3D Vector Graphics. It is used to perform a lot of design as well as… Read More
Containership: When an object of one class is created into another class then that object will be a member of that class, this type of… Read More
An array of pointers is an array of pointer variables. It is also known as pointer arrays. We will discuss how to create a 1D… Read More
An array in any programming language is a collection of similar data items stored at contiguous memory locations and elements can be accessed randomly using… Read More
Given a lower triangular matrix Mat[][], the task is to store the matrix using column-major mapping. Lower Triangular Matrix: A Lower Triangular Matrix is a… Read More
Given a rectangular matrix mat[][] with N rows and M columns, the task is to rotate the matrix by 90 degrees in a clockwise direction… Read More
While programming, there is often a piece of code that needs to be written repetitively. For example, loops (for loop, while loop, do-while loop), or… Read More
In computers, graphics.h can be used to provide direct functions to draw different coordinates, like circles, rectangles, etc. Using these shapes, different objects can be… Read More
In C/ C++, like normal data pointers(int *, char *, etc), there can be pointers to functions. Every function created in a program gets an… Read More
In this article, we will discuss how the variable-length argument works. Variadic function Calling convention Memory layout of C/C++ program Negative subscript Variadic Function: A… Read More
C++ has in its definition a way to represent a sequence of characters as an object of a class. This class is called std::string. String… Read More
Given a set S consisting of N integers and an element K, the task is to find the index of the element K in the… Read More
The numeric_limits class template provides an easy and standardized way to query various properties of arithmetic types. For example, the maximum value a type T… Read More
In this article, two unique and different ways of accessing an element from an array rather than the conventional arr[i] expression are discussed below. Using… Read More

Start Your Coding Journey Now!