1. Shift Operators #

Created Sunday 28 June 2020

The basic ops for bits are shifts, there are two kinds:

Left shift #

x << 1;
2 << 1;

Right shift #

x >> 1;
8 >> 1;


Note: Shift behaves the same in all languages, because shifting is mathematical.