Todays pickGreat Lakes: HOMES โ†’ SHAME

Todays pickGreat Lakes: HOMES โ†’ SHAME

Mnemonic device

Soar high and land low.

Explanation

This is a rhyme to help you remember which bitwise operation sets bits and which one clears them. "Soar" rhymes with OR, and "land" rhymes with AND. To set a bit (turn it high, to 1), OR it. To clear a bit (turn it low, to 0), AND it (with a mask that has a 0 in that position).

๐Ÿ” Search