a. Arithmetic Operators ( + , – , * , / etc ) modules operator % gives the remainder part (eg: 7 % 3 gives 1).
b. Relational Operators ( < , <= , > , >= , == , != )
c. Assignment Operators ( = ) : This operator assigns the right value to the left side operand.
d. Logical Operators:
- logical and ( && ) used to combine multiple conditions (return true if all conditions are true).
- logical or ( || ) used to combine multiple conditions (return true if any of the conditions is true).
- logical not ( ! ) Returns True if condition is False and returns False if it is True.
e.Bitwise Operators ( & , | , ^ , ~ , >> , << ) The bitwise operators are used to perform bit level operations in C++ programming language. When we use the bitwise operators, the operations are performed based on the binary values.
eg: if two variables A and B are:
A = 25 (11001) and B = 20 (10100)
then, A & B ⇒ 16 (10000)