The bitwise right shift (>>) operator is used to shift
(move) bits to the right side. The bitwise right shift operator is represented
by ‘>>’ symbol. It shifts the n bits of operand to the right side.
The
right most n bits will be lost. The left most n position will be filled by 0
(zero). The value of n may not be negative or it may not exceeds the number of
bits used to represent left operand.
Sy:
variable = operand >> number;
Ex:
z = z
>> 3;
No comments:
Post a Comment