flâneur — a map of the web's best reading

Bitmasks - Learn C - Free Interactive C Tutorial

learn-c.org · 550 words · saved by 1 readers

learn-c.org is a free interactive C tutorial for people who want to learn C, fast.

Bitmasks - Learn C - Free Interactive C Tutorial Welcome / Bitmasks Bitmasks Bit masking is simply the process of storing data truly as bits, as opposed to storing it as chars/ints/floats. It is incredibly useful for storing certain types of data compactly and efficiently. The idea for bit masking is based on boolean logic. For those not familiar, boolean logic is the manipulation of 'true' (1) and 'false' (0) through logical operations (that take 0s and 1s as their argument). We are concerned with the following operations: NOT a - the final value is the opposite of the input value (1 -> 0, 0

Explore this link on the map →

related reading