The bitwise left shift (<<) operator is used to shift
(move) bits to the left side. The bitwise left shift operator is represented by
‘<<’ symbol. It shift the n bits of operand to the left side.
The left
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