Skip to content

Tag Archives: CPP-Library

Unordered_map is an associated container that stores elements formed by the combination of key-value and a mapped value. The key value is used to uniquely… Read More
Given a numerator and denominator, we have to find their quotient and remainder without using the modulo or division operator. div() function allows us to… Read More
exit() and _Exit() in C/C++ are very similar in functionality. However, there is one difference between exit() and _Exit() and it is that exit() function… Read More
Both getppid() and getpid() are inbuilt functions defined in unistd.h library. getppid() : returns the process ID of the parent of the calling process. If… Read More
rotate in STL:It rotates the order of the elements in the range [first, last), in such a way that the element pointed by middle becomes… Read More
In order to facilitate finding the current local day, date, and time, C++ has defined several functions in the header file, so functions that will… Read More
Given a URL as a string open it using a C++ code in Microsoft Windows OS. Example: Input : https://www.geeksforgeeks.org/ Output : The site opened… Read More
Given two numbers base and exponent, pow() function finds x raised to the power of y i.e. xy. Basically in C exponent value is calculated… Read More
You came across how to generate random numbers and use of two C function rand() and srand() from the article rand() and srand() in C\C++.Listed… Read More
rand()  rand() function is an inbuilt function in C++ STL, which is defined in header file <cstdlib>. rand() is used to generate a series of… Read More
It is a header file that contains utilities in unrelated domains.  Pairs: These are the objects which can hold two different types of values.  Generic… Read More
In many competitive programming problems, we need to find greatest common divisor also known as gcd. Euclids algorithm to find gcd has been discussed here.C++… Read More
The math.h header defines various mathematical functions and one macro. All the functions available in this library take double as an argument and return double… Read More
In mathematics, the error function (also called the Gauss error function) is a special function (non-elementary) of sigmoid shape that occurs in probability, statistics, and… Read More
Wide char is similar to char data type, except that wide char take up twice the space and can take on much larger values as… Read More

Start Your Coding Journey Now!