Skip to content

Tag Archives: cpp-operator

Casting operators are used for type casting in C++. They are used to convert one data type to another. C++ supports four types of casts:… Read More
Prerequisite: Operators in C++ What is a C++ increment Operator?  The C++ increment operator is a unary operator. The symbol used to represent the increment… Read More
Comparison operators are operators used for comparing two elements, these are mostly used with if-else conditions as they return true-false as result. There are mainly… Read More
The sizeof operator is a unary compile-time operator used to determine the size of variables, data types, and constants in bytes at compile time. It… Read More
Prerequisite: Operator Overloading The assignment operator,”=”, is the operator used for Assignment. It copies the right value into the left value. Assignment Operators are predefined… Read More
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