×
Home Discussions Write at Opengenus IQ
×
  • DSA Cheatsheet
  • HOME
  • Track your progress
  • Deep Learning (FREE)
  • Join our Internship 🎓
  • RANDOM
  • One Liner

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

Split String in C++ [3 ways]

In this article, we will see different ways a string can be splitted in C++. This involve the use of find(), substr() and much more.

Divyanshu Rastogi
C Programming

Clear Console in C

During the execution of the program, the developer needs to clear the screen or remove the previous output for new output. To clear the console screen in the C language many methods are available.

Reshma Patil
C++

map::begin and map::end in C++

In this article, we have covered the concept of map::begin and map::end in C++ STL along with C++ code examples.

Shubhanshu Tomar
Linux

KMP_HW_SUBSET [complete guide]

KMP_HW_SUBSET is an OpenMP environment variable that is used to control the distribution of hardware threads across machine topology. This gives finer control compared to OMP_NUM_THREADS.

Geoffrey Ziskovin Geoffrey Ziskovin
C++

std:to_string and std::to_wstring in C++

In this article, we have explored the functions std:to_string and std::to_wstring in C++ STL along with the difference between string and wstring (wide string).

shivansh chaturvedi
C++

Memset array to 1 in C++

In this article, we have explored the problem of setting an array of int to 1 using memset in C++ and the solution for it.

Geoffrey Ziskovin Geoffrey Ziskovin
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
OpenGenus IQ © 2025 All rights reserved â„¢
Contact - Email: team@opengenus.org
Primary Address: JR Shinjuku Miraina Tower, Tokyo, Shinjuku 160-0022, JP
Office #2: Commercial Complex D4, Delhi, Delhi 110017, IN
Top Posts LinkedIn Twitter
Android App
Apply for Internship