Skip to content

Tag Archives: cpp-operator

Arithmetic Operators in C++ are used to perform arithmetic or mathematical operations on the operands. For example, ‘+’ is used for addition, ‘–‘ is used… Read More
An operator is a symbol that operates on a value to perform specific mathematical or logical computations. They form the foundation of any programming language.… Read More
In C++, an increment operator is used to increment the value of the variable by 1. The symbol ++ is used to represent the increment… Read More
Pre-requisite:Bitwise Operators in C/ C++Bitwise Operators in Java The bitwise complement operator is a unary operator (works on only one operand). It takes one number… Read More
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 properties, 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… 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

Start Your Coding Journey Now!