Tutorial by Examples

Bitwise operators perform operations on bit values of data. These operators convert operands to signed 32-bit integers in two's complement. Conversion to 32-bit integers Numbers with more than 32 bits discard their most significant bits. For example, the following integer with more than 32 bits i...
Bitwise shifting can be thought as "moving" the bits either left or right, and hence changing the value of the data operated on. Left Shift The left shift operator (value) << (shift amount) will shift the bits to the left by (shift amount) bits; the new bits coming in from the righ...

Page 1 of 1