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
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
Python
C
C++
Java
Courses
Machine Learning
DevOps
Web Development
System Design
Aptitude
Projects
Sign In
▲
Similar Topics
DSA
22.3k+ articles
Mathematical
7.7k+ articles
Arrays
6.4k+ articles
C++ Programs
2.5k+ articles
C Language
1.8k+ articles
STL
1.2k+ articles
CPP Examples
700+ articles
CPP-Functions
600+ articles
cpp-vector
360+ articles
CPP-Library
240+ articles
Programming Language
>
C++
C++
5.1k+ posts
Popular Articles
Recent Articles
Sorting a Vector in C++
Last Updated: 13 December 2024
Sorting a vector means arranging the elements of vector in ascending order or in descending order or in desired defined order. In this artic
...read more
STL
cpp-vector
C++
C++ Programs
Left Shift and Right Shift Operators in C/C++
Last Updated: 19 March 2025
In C/C++, left shift () and right shift () operators are binary bitwise operators that are used to shift the bits either left or right of th
...read more
cpp-operator
C++
C++ Bit Manipulation
Segmentation Fault in C++
Last Updated: 11 January 2025
Segmentation faults C++ is an error that occurs when a program attempts to access a memory location it does not have permission to access. G
...read more
Competitive Programming
memory-management
C Language
C++
C-Dynamic Memory Allocation
DSA
C++ Errors
Similar Topics
DSA
22.3k+ articles
Mathematical
7.7k+ articles
Arrays
6.4k+ articles
C++ Programs
2.5k+ articles
C Language
1.8k+ articles
STL
1.2k+ articles
CPP Examples
700+ articles
CPP-Functions
600+ articles
cpp-vector
360+ articles
CPP-Library
240+ articles
getline (string) in C++
Last Updated: 11 January 2025
The C++ getline() is a standard library function that is used to read a string or a line from an input stream. It is a part of the string he
...read more
cpp-string
C++
rand() and srand() in C++
Last Updated: 11 January 2025
The std::rand() in C++ is a built-in function that is used to generate a series of random numbers. It will generate random numbers in the r
...read more
STL
CPP-Library
C++
cpp-random
Multidimensional Arrays in C - 2D and 3D Arrays
Last Updated: 10 January 2025
Prerequisite: Arrays in CA multi-dimensional array can be defined as an array that has more than one dimension. Having more than one dimensi
...read more
c-array
cpp-array
C Language
C++
C-Arrays
C++ Polymorphism
Last Updated: 20 March 2025
The word polymorphism means having many forms.A real-life example of polymorphism is a person who at the same time can have different charac
...read more
C++
CPP-OOPs
C++ Data Types
Last Updated: 17 March 2025
Data typesspecify the type of data that a variable can store. Whenever a variable is defined in C++, the compiler allocates some memory for
...read more
CPP-Basics
C++
school-programming
CBSE - Class 11
Convert String to int in C++
Last Updated: 11 October 2024
Converting a string to int is one of the most frequently encountered tasks in C++. As both string and int are not in the same object hierarc
...read more
CPP-Library
cpp-string
C++
cpp-stringstream
Unordered Map in C++ STL
Last Updated: 03 March 2025
In C++, unordered_map is an unordered associative container that stores data in the form of unique key-value pairs. But unlike map, unordere
...read more
STL
CPP-Library
C++
cpp-containers-library
cpp-unordered_map
cpp-unordered_map-functions
Priority Queue in C++ STL
Last Updated: 19 March 2025
In C++, priority queue is a type of queue in which there is some priority assigned to the elements. According to this priority, elements are
...read more
STL
C++
cpp-containers-library
cpp-priority-queue
Stack in C++ STL
Last Updated: 28 February 2025
In C++, stack container follows LIFO (Last In First Out) order of insertion and deletion. It means that most recently inserted element is re
...read more
Stack
STL
C++
cpp-containers-library
cpp-stack
cpp-stack-functions
Copy Constructor in C++
Last Updated: 11 January 2025
A copy constructor is a type of constructor that creates an object using another object of the same class. The process of initializing membe
...read more
cpp-class
cpp-constructor
C++
CPP-OOPs
Operator Overloading in C++
Last Updated: 11 January 2025
in C++, Operator overloading is a compile-time polymorphism. It is an idea of giving special meaning to an existing operator in C++ without
...read more
C++
cpp-operator-overloading
cpp-overloading
Friend Class and Function in C++
Last Updated: 11 January 2025
A friend class can access private and protected members of other classes in which it is declared as a friend. It is sometimes useful to allo
...read more
C++
cpp-friend
First
1
2
3
4
5
6
7
8
>>
Last
First
1
2
3
4
5
6
>>
Last
First
1
2
3
4
>>
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 !