Skip to content

Tag Archives: CPP-Functions

The std::basic_istream::gcount() is used to count the characters in the given string. It returns the number of characters extracted by the last unformatted input operation.… Read More
The function log2() of cmath header file in C++ is used to find the logarithmic value with base 2 of the passed argument. Syntax: log2(x)… Read More
The bit_or is an inbuilt function in C++ which is used to perform bitwise_or and return the result after applying the bitwise_or operation on it’s… Read More
The bit_xor is an inbuilt function in C++ which is used to perform bitwise_xor and return the result after applying the bitwise_xor operation on it’s… Read More
When we begin programming in C/C++, we generally write one main() function and write all our logic inside this. This approach is fine for very… Read More
The std::to_address, introduced in C++20, is used to obtain the address represented by the specified pointer without forming a reference to the pointee. The existing… Read More
The tgamma() function is defined in header math.h header in C and cmath library in C++. This function is used to compute the gamma function… Read More
The fpclassify() function are defined in header math.h header in C and cmath library in C++. This function is used to get the value of… Read More
Since it is known that main() method is the entry point of the program. Hence it is the first method that will get executed by… Read More
cin.get() is used for accessing character array. It includes white space characters. Generally, cin with an extraction operator (>>) terminates when whitespace is found. However,… Read More
The _Find_first() is a built-in function in C++ Biteset class which returns an integer that refers the position of first set bit in bitset. If… Read More
The _Find_next() is a built-in function in C++ Biteset class which returns an integer which refers the position of next set bit in bitset after… Read More
The seekp(pos) method of ostream in C++ is used to set the position of the pointer in the output sequence with the specified position. This… Read More
The math.h header contains methods for performing basic numeric operations such as the elementary exponential, logarithm, square root, and trigonometric functions. In order to use… Read More
The fill_n() function in C++ STL is used to fill some default values in a container. The fill_n() function is used to fill values upto… Read More