I have a 5 byte data element and I need some help in figuring out how in C++ to set an individual bit of one of these byte; Please see my sample code below:
You can use bitwise-or (|) to set individual bits, and bitwise-and (&) to clear them.
|
&