C++ language

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

Tolal:0 Click:

Show All Comments

Did not find what you were looking for leave your name and message. We will revert within 24 hours
Name:
eMail:
Comment / Feedback: