theory4
theory4
(Chapter 3 of Schilit)
Object Oriented Programming BS (AI) II
Compiled By
Abdul Haseeb Shaikh
Operators
• Arithmetic
• Bitwise
• Relational
• Logical
sk1
Arithmetic
operators
• Operands to these
• operators must be
• numeric
Slide 3
NOT(!)
a=0011
b=0110
a&b=0010
a=0011
b=0110
a^b=0101
a=0011
b=0110
a&b=0010
LOGICAL BINARY SHIFTS
Assignment
Operator
The ? Operator