You are on page 1of 21

Operators

(Chapter 3 of Schilit)
Object Oriented Programming BS (CS/SE) II
By
Dr. Sher Muhammad Dadupota
Operators
Unary Operator
• Unary Minus
• NOT(!)
• Increment(++) (pre & post)
• Decrement(--) (pre & post)
Modulus Operator(%)
• Floating
• Integer
Compound Assignment Operators
var = <var> op <expression> Equal to var op= <expression>;
Bitwise Operators
Bitwise Logical Operators
&, |, ^, and ~
Bitwise NOT
Bitwise AND
Bitwise OR
Bitwise XOR
Left Shif
Right Shif
Unsinged Right Shift
Bitwise Operator Compound Operator
Relational Operators
Boolean Logical Operators
Short Circuit Logical Operator
Assignment Operator
The ? Operator
Operator Precedence

You might also like