![]() |
help on masking
how does masking works in c++
how can i extract the position of my desire from a series of bits given to me for instance if 16 in bit is 10000 how can i get the 3rd number please adivce |
Re: help on masking
You need to do the Bitwise AND (&) / Bitwise OR (|) to do the masking
Truth table is as follows OR Code:
+-----+-----+-----+Code:
+-----+-----+-----+ |
| All times are GMT +5.5. The time now is 05:09. |