×
Home Discussions Write at Opengenus IQ
×
  • RANDOM
  • Join our Internship 🎓
  • 100+ Graph Algorithms
  • 100+ DP Problems
  • 50+ Linked List Problems
  • 50+ Array Problems
  • One Liner
  • 50+ Binary Tree problems
  • #7daysOfCode
  • Linux 💽
  • 🔊 Data Structures
  • Graph Algorithms
  • Dynamic Programming 💑
  • Home

C++

C++ is a powerful, object oriented and early programming language which is derived from C. It is widely used in production systems and gives huge control to the programmer.

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.

Reyansh Bahl
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.

kartikeya
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++.

Vaishnavi N Vaishnavi N
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.

kartikeya
C++

copy and swap idiom in C++

In this article, we have explained copy and swap idiom in C++.

Gabriel
C++

typedef vs using in C++

In this article, we will explore the differences between the two type aliases in C++ - typedef and using.

Shlok Singh
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.

Gabriel
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.

Ajay Kumar
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.

Gabriel
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.

Gabriel
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.

kartikeya
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.

Gifty Treesa Iju Gifty Treesa Iju
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.

Aditi Sharma Aditi Sharma
C++

* vs ** pointer in C

In this article, we have explained the difference between * and ** pointer in C and C++.

Purvak Baliyan
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.

Nancy Korir
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.

Gaduputi Thanusree
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.

Vridhi Kamath Vridhi Kamath
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.

Gehad Salem Ahmed
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.

Aravind Mohandas Aravind Mohandas
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).

Mainak Debnath
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.

Shwet Shukla Shwet Shukla
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.

Sanjay kumar
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.

TJ Kapil
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.

Erick Lumunge Erick Lumunge
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.

Shambhavi Sudarsan Shambhavi Sudarsan
OpenGenus IQ © 2022 All rights reserved â„¢ [email: team@opengenus.org]
Top Posts LinkedIn Twitter