Skip to content

Category Archives: C++ Programs

The isdigit(c) is a function in C which can be used to check if the passed character is a digit or not. It returns a… 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
Ellipsis in C++ allows the function to accept an indeterminate number of arguments. It is also known as the variable argument list. Ellipsis tells the… Read More
Prerequisite: graphics.h, How to include graphics.h?  In C/C++ there is graphics.h header file which is used to create the object like line, circle, etc. Given an… Read More
Prerequisites: l-value and r-value references in C++, Copy Constructor in C++. What is a Move Constructor?   The copy constructors in C++ work with the… Read More
Prerequisite: List, Stack Lists are sequence containers that allow non-contiguous memory allocation. As compared to vector, list has slow traversal, but once a position has… Read More
A C++ tuple is a container that can store multiple values of multiple types in it. We can access the elements of the tuple using… Read More
Given a Unix Timestamp T (in seconds) for a given point in time, the task is to convert it to human-readable format (DD/MM/YYYY HH:MM:SS) Example:… Read More
The purpose of the exit() function is to terminate the execution of a program. The “return 0”(or EXIT_SUCCESS) implies that the code has executed successfully… Read More

Start Your Coding Journey Now!