• Tutorials Logic, IN
  • +91 8092939553
  • info@tutorialslogic.com

Operators in C++

C++ Operators

An operators are used to perform a mathematical operation on single or multiple operands. There are various operators available in C++, which are categorized into 5 parts-

Arithmetic Operators

OperatorDescription
+Addition
-Subtraction
*Multiplication
/Division
%Modulus (Remainder of a division)

Assignment Operators

OperatorDescription
=Assign
+=Add and assign
-=Subtract and assign
*=Multiply and assign
/=Divide and assign
%=Modulus and assign

Comparison/Relational Operators

OperatorDescription
==Equal to
!=Not equal to
>Greater than
>=Greater than or equal to
<Less than
<=Less than or equal to

Boolean/Logical Operators

OperatorDescription
&&Logical AND
||Logical OR
!Logical NOT

Increment and Decrement Operators

OperatorDescription
++Increment
--Decrement

Ternary Operators

OperatorDescription
(expression) ? true : falseTernary operators