C++ Working with 2D Maps in C++ In this article, we will learn how to work with two-dimensional (2D) maps in C++. We have explained the concept using C++ code examples.
C++ Definition vs Declaration vs Initialization in C/ C++ In this article, we have covered the differences between 3 core terms Definition, Declaration and Initialization in C and C++ along with code snippets.
C++ Segmentation fault in C and C++ In this article, we have explored the idea of Segmentation fault in C and C++ along with different possible reasons for Segmentation fault in C and C++.
C++ T&& (double ampersand) in C++11 In this article, we have explored the idea of T&& (double ampersand) in C++11. T&& was firstly introduced in the C++ 11 standard which declares an rvalue reference.
C++ typedef vs using in C++ In this article, we will explore the differences between the two type aliases in C++ - typedef and using.
C++ Different ways to append two vector in C++ STL In this article, we have explored Different ways to append two vector in C++ STL which include std::copy, insert, concat, overloaded + operator and other functions.
C++ Iterate String word by word in C++ [5 Methods] In this article, we are going to discuss different methods to iterate a String word-by-word using C++ libraries/techniques.
C++ Different ways to delete string in C++ In this article, we have explored different ways to delete string in C++ which include clear, resize, erase, swap functions along with other techniques.
C++ Null and void in C and C++ In C and C++ Programming language, NULL and void have two distinct meanings and use cases like NULL reference, void pointer and much more. We have explored this in depth.
C++ Sort Map in C++ STL In this article, we have explained different ways to sort a Map in C++ STL using C++ code snippets.
C++ Variable in C++ In this article, we will learn everything about the variables in C++ including rules of variable naming, types of variables and much more.
C++ Initialization of Multiset in C++ In this article, we have explored 6 different ways to initialize Multiset in C++ STL along with C++ code snippets for each approach.
C++ * vs ** pointer in C In this article, we have explained the difference between * and ** pointer in C and C++.
C++ Compiling a C program using GCC In this article, we have covered how to compile a C program using the GCC compiler along with the different stages such as Preprocessing, compiling, assembling and linking.
C++ Reverse Deque in C++ STL In this article, we have presented different ways to Reverse Deque in C++ STL. This involve the use of reverse iterator of Deque or the Reverse method in C++ STL.
C++ Different ways to reverse vector in C++ STL In this article, we take a look at different ways to reverse vector in C++ Standard Template Library (STL) along with reversing a 2D vector.
C++ Return value of main() in C / C++ The return value of main() function shows how the program exited. The normal exit of program is represented by zero return value. If the code has errors, fault etc., it will be terminated by non-zero value.
C++ Different ways to initialize List in C++ STL In this article, we have explained Different ways to initialize List in C++ STL including Initializing list with elements of another list, using a vector or array and much more.
C++ Dot Product of Two Vectors in C++ In this article, we have presented two different ways to do Dot Product of Two Vectors in C++. This involves the use of inner_product method in C++ STL (Standard Template Library).
C++ "using namespace std;" is bad practice in C++ The statement "using namespace std;" is generally considered bad practice. The alternative to this statement is to specify the namespace to which the identifier belongs using the scope operator(::) each time we declare a type.
Software Engineering Power and Exponential functions in math.h Header file in C/ C++ In a simple way, a Library is collection of built in functions. One of the header file of standard C library is "math.h". As the name itself suggests, It defines various mathematical functions.
C++ Different ways to initialize Deque in C++ STL In this article, we will learn about the concept behind a deque and different ways to initialize a deque in C++ Standard Template Library (STL) like using default constructor, fill, range, move and others.
C++ Different Ways to find element in Vector in C++ STL In this article, we have explained Different Ways to find element in Vector in C++ STL which includes using std::find(), std::find_if, std::distance, std::count and Linear Search.
C++ std::swap function in C++ In this article, we have explained the use of std::swap function in C++ with multiple C++ code examples covering primitive data types to User defined classes.