Bit Operations in C/C++ - Robert Heckendorn's Home Page
It is important to note that +, -, *, / bind more tightly than any of the bitwise operators! (see the shift example.) Types for using with bit operations Use unsigned types such as unsigned int to avoid issues with sign extension. In the table below maxim...