6 ms·
CS courses tend to explain what bit shifting is but not when you would use it. For example you'll often see a lecturer drawing lots of 1s and 0s on a whiteboar
by atomicdog 15y ago
CS courses tend to explain what bit shifting is but not when you would use it.
For example you'll often see a lecturer drawing lots of 1s and 0s on a whiteboard to illustrate it but you're less likely to see a simple example Java program which uses shifting to get RGB values deconstructed.