Skip to content

Category Archives: C++ Programs

Hamming code is an error-correcting code used for detecting and correcting errors in data transmission. It adds redundant bits to the data being transmitted which… Read More
If-Else is a decision-making statement, where the result will be either true or false. If the statement accepts boolean values – if the value is… Read More
Prerequisite: How to include graphics.h?, graphics.hThe task is to draw an ellipse that is intersected by a straight line passing through the center of the… Read More
As we know that new is used to create memory dynamically and it is the programmer’s responsibility to delete the memory location explicitly and it… Read More
sizeof() is commonly used operator in the C or C++. It is a compile-time unary operator that can be used to compute the size of… Read More
Run-time Constant: These are the constants whose respective values can only be known or computed at the time of running of source code. Run time… Read More
In this article, we will discuss the ways to compare a variable with values. Method 1: The idea is to compare each variable individually to… Read More
 In C++, we can overload the comma operator using Operator Overloading. For Example: For “Send the query X to the server Y and put the… Read More
Given a string str, the task is to print all the anagrams of the given string which forms a word that exists in English Dictionary.… Read More
Comparator Classes are used to compare the objects of user-defined classes. In order to develop a generic function use template, and in order to make… Read More
Most of us struggle with using heavy software to run C++ and python code and things become more complicated when we have too many files… Read More
Given an array arr[] consisting of N integers, the task is to find the largest element in the given array using Dynamic Memory Allocation. Examples:… Read More
In Object Oriented Programming, Objects are the instances of a class which has its own state(variables) and behavior(methods).  Every class has two special methods related… Read More
Given a positive integer N, the task is to find the minimum N-digit number such that performing the following operations on it in the following… Read More
In C, %n is a special format specifier. In the case of printf() function the %n assign the number of characters printed by printf(). When… Read More