Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Sign In
▲
Similar Topics
Experiences
16.5k+ articles
Interview Experiences
14.1k+ articles
C++
4.2k+ articles
C++ Programs
2.4k+ articles
C Language
2.1k+ articles
Misc
1.3k+ articles
STL
1.2k+ articles
CPP-Functions
600+ articles
CPP-Library
240+ articles
cpp-constructor
37 articles
cpp-advanced
21 posts
Popular Articles
Recent Articles
class std::string_view in C++17
Last Updated: 03 June 2022
The std::string has some demerits, one of the most common situations is constant strings. Below is the program that demonstrates the problem
...read more
Strings
cpp-advanced
C++
C++ Programs
DSA
Explicitly Defaulted and Deleted Functions in C++ 11
Last Updated: 06 June 2021
Defaulted FunctionWhat is a Defaulted Function?Explicitly defaulted function declaration is a new form of function declaration that is intro
...read more
cpp-advanced
cpp-constructor
C++
reinterpret_cast in C++ | Type Casting operators
Last Updated: 30 May 2022
reinterpret_cast is a type of casting operator used in C++.It is used to convert a pointer of some data type into a pointer of another data
...read more
cpp-pointer
cpp-advanced
C++
Similar Topics
Experiences
16.5k+ articles
Interview Experiences
14.1k+ articles
C++
4.2k+ articles
C++ Programs
2.4k+ articles
C Language
2.1k+ articles
Misc
1.3k+ articles
STL
1.2k+ articles
CPP-Functions
600+ articles
CPP-Library
240+ articles
cpp-constructor
37+ articles
Undefined Behavior in C and C++
Last Updated: 29 March 2024
When we run a code, sometimes we see absurd results instead of expected output. So, in C/C++ programming, undefined behavior means when the
...read more
cpp-advanced
C Language
C++
C++17 new feature : If Else and Switch Statements with initializers
Last Updated: 27 January 2018
In many cases, we need to check the value of something returned by a function and perform conditional operations based on this value. So our
...read more
cpp-advanced
C++
Algorithm Library Functions in C++ STL
Last Updated: 21 August 2023
Non-modifying sequence operationsstd :: all_of : Test condition on all elements in rangestd :: any_of : Test if any element in range fulfill
...read more
Interview Experiences
STL
cpp-advanced
C++
cpp-algorithm-library
cpp-containers-library
Experiences
Vector erase() in C++ STL
Last Updated: 01 May 2025
In C++, vector erase() is a built-in function that is used to delete elements from the vector. It removes an element of a specific position
...read more
STL
CPP-Library
CPP-Functions
cpp-vector
cpp-advanced
C++
Generalized Lambda Expressions in C++14
Last Updated: 30 July 2024
Lambda expressions were introduced in C++11. They are basically snippets of code that can be nested inside other functions and even function
...read more
cpp-advanced
C Language
C++
Preventing Object Copy in C++ (3 Different Ways)
Last Updated: 24 September 2017
Many times, user wants that an instance of a C++ class should not be copied at all. So, the question is how do we achieve this ?There are th
...read more
Misc
cpp-advanced
cpp-constructor
C++
User Defined Literals in C++
Last Updated: 30 June 2023
A literal is used for representing a fixed value in a program. A literal could be anything in a code like a, b, c2. , 'ACB', etc.Similarly,
...read more
cpp-advanced
C++
Placement new operator in C++
Last Updated: 29 November 2021
Placement new is a variation new operator in C++. Normal new operator does two things : (1) Allocates memory (2) Constructs an object in all
...read more
cpp-advanced
C++
Advanced C++ with Boost Library
Last Updated: 27 December 2021
Boost Libraries are intended to be widely useful, and usable across a broad spectrum of applications. For example, they are helpful for hand
...read more
cpp-advanced
C++
cpp-boost
Copy-and-Swap Idiom in C++
Last Updated: 04 April 2025
In C++, classes that manage dynamic resources requires assignment operator overloading for deep copying the data of assigned objects. Copy S
...read more
cpp-advanced
C++
Lambda Expression in C++
Last Updated: 14 May 2025
C++ 11 introduced lambda expressions to allow inline functions which can be used for short snippets of code that are not going to be reused.
...read more
cpp-advanced
C Language
C++
Foreach in C++ and Java
Last Updated: 11 January 2025
Foreach loop is used to iterate over the elements of a container (array, vectors, etc) quickly without performing initialization, testing, a
...read more
Java
cpp-advanced
C++
1
2
>>
Last
1
2
>>
Last
1
2
>>
Last
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !