Solution Review: Turn On the 3rd and 5th Bits
Follow the step-by-step instructions to turn on the 3rd and 5th bits.
We'll cover the following...
We'll cover the following...
Solution
RUN the code given below and see its output!
Explanation
To turn on the bit, first, we have to select the appropriate mask value based on the value that should be turned on.
Lines 36-38: If you want to turn on the bit, then the ...