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

Software Engineering

endl vs \n (New Line) in C++

In C++, endl and /n are used to break lines or move the cursor to a new line. Both endl and \n may seem to be similar but has distinct differences which we have explored in this article in depth.

Shreya Shah Shreya Shah
Software Engineering

Set vs Map containers in C++

This article is to discuss the difference between a set and a map which are both containers in the Standard Template Library in C++.

Siddhant Rao
Software Engineering

Different ways to insert elements in Deque in C++

We have explored different ways to insert elements in Deque in C++ such as deque::push_back(), insert(), assign(), emplace(), swap() and much more.

Suryansh Gautam
Software Engineering

Using strings and characters in C++ safely

Secure Coding in C++ or why we have to use strings and characters in C++ safely? What is C++, what are Strings and Buffer Overflows? And something about software vulnerabilities and exploits

Mikhail Zhivoderov Mikhail Zhivoderov
System Design

Memory Pool with C++ Implementation

Memory Pool is an optimization technique of allocating a specific amount of memory beforehand and handle all allocation and deallocation of memory from a concerned software system from this pre-allocated memory (which is known as Memory Pool).

Benjamin QoChuk, PhD Benjamin QoChuk, PhD
Software Engineering

Different ways to initialize an array in C++

We have covered Different ways to initialize an array in C++ including both the standard array and array container in STL.

Vasu Soni Vasu Soni
Software Engineering

3D Vectors in C++

Article for 3D Vector in C++ which contains guide for creating 3D vector, adding elements, deleting elements traversing through vector and different ways for doing these.

Vikram Shishupalsingh Bais Vikram Shishupalsingh Bais
Software Engineering

Bit header file in C++20

Bit header was included in the C++20. This header provides components such as types and functions to access, manipulate and process individual bits and bit sequences.

Rohit Topi
Software Engineering

Deleted function in C++

C++11 introduced a new use of the delete keyword to make a function non-callable.

Rohit Topi
Software Engineering

Default functions in C++11

C++11 introduced a new use of the default keyword as a way to explicitly tell the compiler that a special member function will use the default implementation.

Rohit Topi
Software Engineering

Basics of Unordered multiset in C++

An unordered multiset is an unordered set (a set in which a key can be stored in any random order) that allows different elements to have equivalent values (allows duplicate items).

Raghavendra Achar C
Software Engineering

C++ Likely and Unlikely attributes

C++ likely and unlikely attributes came into existence with the release of C++ 20. In our C++ code if we know which lines of code would most probably be executed during our code execution then we can use likely and unlikely attributes.

Hrithik Shrivastava Hrithik Shrivastava
Software Engineering

Vector::pop_back() in C++

We have learnt about pop_back() method of Vector class included in std::vector library in C++. Vectors can be considered as dynamic arrays on the basis of its usage.

Harsh Khilawala
Software Engineering

Create and Delete Folder in C++

This article covers the process of creating and delete a directory (folder) in C++. We have provided the complete C++ implementation.

Renuka Ashok Jadhav
C++

std::variant in C++

std::variant was added in C++17 to support the sum type. It adds more functionality to union and hence is a safer version of it.

Rohit Topi
C++

Spaceship operator <=> in C++

The three-way comparison operator , colloquially called the spaceship operator was added in C++20. It is an alternative to basic_string compare() function in C++.

Rohit Topi
Software Engineering

Immediate Functions in C++

Immediate functions or the functions which have consteval keyword before their return type has been introduced with the release of C++ 20 , consteval functions are the functions that must be evaluated at compile time to produce a constant.

Hrithik Shrivastava Hrithik Shrivastava
Software Engineering

Explicit in C++

Explicit is a keyword in C++ which was introduced with C++ 11 this is used to cast a data type and also to change the by default implicit conversion in C++.

Hrithik Shrivastava Hrithik Shrivastava
Software Engineering

Digit Separators in C++

In this article, we have discussed about Digit Separators in C++. This topic is introduced in C++14. Using digit separators in the code make it easy for human readers to parse large numeric values.

Ketaki Gorakshanath Gangadhar
Software Engineering

Implementing rmdir using C/ C++

We have developed the rmdir command of UNIX systems in C and C++ by using the remove and nftw system functions to delete a directory.

Sahil Silare Sahil Silare
Software Engineering

Implementing mkdir in C/ C++

We have developed the mkdir command of UNIX systems in C and C++ by using the mkdir function to create a directory.

Sahil Silare Sahil Silare
Software Engineering

Implementing cd command in C/ C++

We have developed the cd command of UNIX systems in C and C++ by using the chdir function.

Sahil Silare Sahil Silare
Software Engineering

nullptr (null pointer) in C++

A null pointer (nullptr) is a pointer that does not point to any memory location. nullptr is a keyword that was introduced in C++11 standard to denote a null pointer. This standard also introduced a nullptr_t type.

Rohit Topi
Software Engineering

Different ways to initialize 2D array in C++

We have explored different types to initialize 2D array in C++ like Sized array, Skipping values and Unsized array initialization.

Srishti Guleria Srishti Guleria
Software Engineering

Implementing pwd command in C/C++

We will use the header file dirent.h for directory structures and objects and implement our pwd command in C/C++. This will involve the getcwd() function call.

Sahil Silare Sahil Silare
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