Tutorials
Courses
Go Premium
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.0K+ articles
C++
3.7K+ articles
C++ Programs
1.5K+ articles
cpp-operator
59+ articles
cpp-operator-overloading
23+ articles
cpp-structure
19+ articles
Operators
13+ articles
Data Structures-Hash
8+ articles
Operator Overloading
6+ articles
C++-Operator Overloading
15 posts
Recent Articles
Popular Articles
Why Assignment Operator Overloading Must Return Reference?
Last Updated: 23 July 2025
Operator overloading in C++ allows us to define custom behaviors for operators when applied to user-defined types. One of the most commonly overloaded operators is the ass...
read more
C++ Programs
C++
Operators
C++-Operator Overloading
What Are the Basic Rules and Idioms for Operator Overloading in C++?
Last Updated: 23 July 2025
In C++, operator overloading is a form of compile-time polymorphism where an operator is redefined to provide a special meaning beyond its typical operation. It allows dev...
read more
C++ Programs
C++
Picked
C++-Operator Overloading
CPP Examples
How to Overload the Less-Than (<) Operator in C++?
Last Updated: 12 February 2024
In C++ we have an operator called less than operator () which checks if the left side operand is smaller than the right side operand or not. In this article, we will learn...
read more
C++ Programs
C++
Picked
C++-Operator Overloading
Operator Overloading
CPP-OOPs
CPP Examples
Overloading Relational Operators in C++
Last Updated: 23 July 2025
In C++, operator overloading is used to redefine the behavior of already existing operators. Similarly, overloading the relational operators is commonly used to compare th...
read more
C++ Programs
C++
Picked
cpp-operator-overloading
C++-Operator Overloading
Operator Overloading
cpp-overloading
CPP Examples
Overload == operator for Stack
Last Updated: 26 July 2025
Stack is a linear data structure that works in a model of LIFO ( last in first out ). In which, the element pushed at last will be deleted at first.Insertion and deletion ...
read more
Stack
Technical Scripter
Picked
Technical Scripter 2022
DSA
C++-Operator Overloading
C++ Bitwise Operator Overloading
Last Updated: 23 July 2025
Prerequisites:Operator OverloadingBitwise Operator in C/C++In C++, there are a total of six bitwise operators. The six bitwise operators are bitwise AND (), bitwise OR (|)...
read more
Technical Scripter
C++
Technical Scripter 2022
C++-Operator Overloading
C++ Logical (&&, ||, !) Operator Overloading
Last Updated: 23 July 2025
Prerequisites:OperatorsOperator OverloadingLogical operators are used for combining two or more conditions or constraints or to complement the evaluation of the original c...
read more
Technical Scripter
C++
Technical Scripter 2022
C++-Operator Overloading
Input/Output Operators Overloading in C++
Last Updated: 23 July 2025
Operator Overloading is a part of Polymorphism, which enables the feature because of which we can directly use operators with user-defined classes and objects.To read more...
read more
Technical Scripter
C++
Picked
Technical Scripter 2022
C++-Operator Overloading
Add given timestamps by overloading + operator in C++ Time Class
Last Updated: 23 July 2025
In C++, we can make operators to work for user-defined classes. This means C++ has the ability to provide the operators with a special meaning for a data type, this abilit...
read more
C++
C++-Operator Overloading
CBSE - Class 12
Overloading of function-call operator in C++
Last Updated: 23 July 2025
In this article, we will discuss the Overloading of the function-call operators in C++.The function call operator is denoted by “()” which is used to call function and pas...
read more
C++ Programs
C++
cpp-operator
cpp-operator-overloading
C++-Operator Overloading
Unformatted input/output operations In C++
Last Updated: 23 July 2025
In this article, we will discuss the unformatted Input/Output operations In C++. Using objects cin and cout for the input and the output of data of various types is possib...
read more
C++ Programs
C++
cpp-input-output
cpp-operator
cpp-operator-overloading
Operators
C++-Operator Overloading
Cascading of Input/Output Operators in C++
Last Updated: 15 July 2025
Prerequisite: Operator Overloading in C++, Types of Operator OverloadingWhen an object calls an operator function by passing an argument and the returned value of the oper...
read more
C++ Programs
C++
cpp-operator
cpp-operator-overloading
C-Operators
Operators
C++-Operator Overloading
Operator Overloading
Count number of Unique Triangles using Operator overloading
Last Updated: 15 July 2025
Given N triangles along with the length of their three sides as a, b and c. The task is to count the number of unique triangles out of these N given triangles. Two triangl...
read more
DSA
cpp-operator-overloading
C++-Operator Overloading
Operator Overloading
cpp-overloading
C++ Program to concatenate two strings using Operator Overloading
Last Updated: 11 July 2025
Pre-requisite: Operator Overloading in C++Given two strings. The task is to concatenate the two strings using Operator Overloading in C++.Example:Input: str1 = "hello", st...
read more
Technical Scripter
C++ Programs
GATE CS
C++
Technical Scripter 2018
C++-Operator Overloading
Queries to insert, delete one occurrence of a number and print the least and most frequent element
Last Updated: 28 July 2025
Given Q queries of type 1, 2, 3 and 4 as described below.Type-1: Insert a number to the list.Type-2: Delete only one occurrence of a number if exists.Type-3: Print the lea...
read more
DSA
cpp-structure
Data Structures-Hash
C++-Operator Overloading
cpp-set
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 !