The three basic bit manipulation operations are:
- Set a bit (change its value to 1)
- Reset a bit (change its value to 0)
- Read a bit (determine whether it’s 1 or 0)
The standard C library lacks specific functions to carry out these bit manipulations, and I haven’t checked to see whether a third party library is available. That’s because you can easily code these operations on your own.
Continue reading