x&2 and x>>1 meaning code example Example: x&2 and x>>1 meaning x & 1 is equivalent to x % 2. x >> 1 is equivalent to x / 2