Skip to content

Category Archives: C++

__builtin_popcount()  is a built-in function of GCC compiler. This function is used to count the number of set bits in an unsigned integer.  Syntax: __builtin_popcount(int… Read More
Sets are the containers that are available in the C++ Standard Template Library (STL). They are used to hold distinct elements in a predetermined sequence; fundamentally, it… Read More
In this article, we will learn how to convert String To Float/Double And Vice-Versa. In order to do conversion we will be using the following… Read More
This article discusses converting a hex string to a signed integer in C++. There are 5 ways to do this in C++: Using stoi() function.… Read More
The getenv() function in C++ is used to return a pointer to the C string that contains the value of the environment variable passed as… Read More
C++ datatypes have a specific size, that is, the number of bits that each of them occupies is fixed. Sometimes while writing code, we may… Read More
An Exception is a run-time error, which occurs during the execution of a program, that disrupts the normal flow of the program’s instructions. For example,… Read More
If is a type of condition checking in which a condition turns out to be true a block of statements is executed. Syntax: // if… Read More
Cend() is the function defined in C++ STL. This function produces a constant random access iterator that identifies the deque’s past-the-end element. If the container… Read More
Prerequisites: Structures in C++ Vector in C++ Structures are user-defined datatypes used to group various related variables into one single data type.  The structures can… Read More
Delimiters are used as separators between the characters or words in a string so that different results can get separated by the delimiter. In this… Read More
fork() is a system call that creates a child process from the parent process. Whenever we call fork() from the parent program, a child process… Read More
printf() function is originally declared under the <cstdio>header file. It prints the formatted string to the standard output stdout. Syntax:  int printf(const char*word, .......) Parameters:… Read More
Measuring elapsed time is a common requirement for most software development packages. It is used to determine the efficiency of the program and gives an… Read More
Printing Boundary Elements of a Matrix. Given a matrix of size n x m. Print the boundary elements of the matrix. Boundary elements are those… Read More

Start Your Coding Journey Now!