This is post is part of set 2 of A Ramble Around CS. In this post, we’re going to look at how to get, set, and otherwise manipulate individual bits. Bit twiddling and bit bashing are often used interchangeably with bit manipulation, but sometimes exclusively refer to clever or non-obvious ways or uses of bit manipulation, or tedious or challenging low-level device control data manipulation tasks. The term bit twiddling dates from early computing hardware, where computer operators would make...