Skip to content

Tag Archives: cpp-operator

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… Read More
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… Read More
The expression must have class type is an error that is thrown when the dot(.) operator is used to access an object’s prpperties, is used… Read More
Prerequisite: Operator Overloading in C++, Types of Operator Overloading When an object calls an operator function by passing an argument and the returned value of… Read More
–> is called as “Goes to” in C/ C++ and compiles fine in every compiler including GCC and MSVN. This operator (–>) is not described… Read More
The three-way comparison operator “<=>” is called a spaceship operator. The spaceship operator determines for two objects A and B whether A < B, A… Read More
sizeof() is commonly used operator in the C or C++. It is a compile-time unary operator that can be used to compute the size of… Read More
Short-circuiting is one of the optimization steps of the compiler, in this step unnecessary calculation is avoided during the evaluation of an expression. Expression is… Read More
typeid is an operator in C++.   It is used where the dynamic type or runtime type information of an object is needed. It is included… Read More
The modulo operator, denoted by %, is an arithmetic operator.The modulo division operator produces the remainder of an integer division.  Syntax: If x and y… Read More
The conditional operator is kind of similar to the if-else statement as it does follow the same algorithm as of if-else statement but the conditional… Read More
Operator overloading is a feature in object-oriented programming which allows a programmer to redefine a built-in operator to work with user-defined data types.Why operator overloading? Let’s… Read More
The dot (.) operator is used for direct member selection via object name. In other words, it is used to access the child object. Syntax:… Read More
Assignment operators are used to assigning value to a variable. The left side operand of the assignment operator is a variable and right side operand… Read More
Operator Overloading:   C++ provides a special function to change the current functionality of some operators within its class which is often called as operator overloading.… Read More