##
std::rotate vs std::rotate_copy in C++ STL
August 5, 2017

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 »

August 5, 2017

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 »

July 31, 2017

In order to facilitate finding the current local day, date and time, C++ has defined several functions in the header file , so functions which… Read More »

July 7, 2017

Given a URL as a string open it using a C++ code in Microsoft Windows OS. Example: Input : http://www.geeksforgeeks.org/ Output : The site opened… Read More »

July 3, 2017

Given two numbers base and exponent, pow() function finds x raised to the power of y i.e. xy Syntax: double pow(double x, double y); x… Read More »

June 24, 2017

You came across how to generate random numbers and use of two C funtion rand() and srand() from the article rand() and srand() in C\C++.… Read More »

June 23, 2017

rand () rand() function is used in C to generate random numbers. If we generate a sequence of random number with rand() function, it will… Read More »

June 11, 2017

It is a header file which contains utilities in unrelated domains. Pairs: Theses are the objects which can hold two different types of values. Generic… Read More »

June 10, 2017

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… Read More »

June 1, 2017

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 »

May 31, 2017

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 »

May 21, 2017

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 »

May 17, 2017

fgetc() fgetc() is used to obtain input from a file single character at a time. This function returns the number of characters read by the… Read More »

May 15, 2017

fseek() is used to move file pointer associated with a given file to a specific position. Syntax: int fseek(FILE *pointer, long int offset, int position)… Read More »

May 13, 2017

ftell() in C is used to find out the position of file pointer in the file with respect to starting of the file. Syntax of… Read More »

May 4, 2017

In mathematics and computer science, the floor and ceiling functions map a real number to the greatest preceding or the least succeeding integer, respectively. floor(x)… Read More »