C++ language

adplus-dvertising
Operators In c++
Previous Home Next

The number of operators in C++ is quite large.

  • Arithmetic Operators
  • Increment And Decrement Operators
  • Relational Operators
  • Boolean Operators
  • Assignment Operators
  • Bitwise Operators

Arithmetic Operators

Operators function
+ Addition
- Subtraction
* Multiplication
/ Division
% Modulus

Increment And Decrement Operators

Operator function
A++ Post Increment
++A Pre Increment
A- - Post Decrement
- -A Pre Decrement

Relational Operators

Operator function
== Equality
!= Not Equal
< Less Than
> Greater Than
>= Greater Than Equal
<= Less than Equal

Boolean Operators

Operator function
&& And
|| Or
! Not

Assignment Operators

Operators function
= Assign right side value to left side variable
+ = A+=B means A=A+B
- = A-=B means A=A-B
* = A*=B means A=A*B
/ = A/=B means A=A/B
% = A%=B means A=A%B

Bitwise Operators

Operators function
& And
| OR
^ XOR
~ NOT
<< SHL
>> RHL
Previous Home Next