[Solved] Which of the following bitwise operator will you use to invert all the bits in a bit array?

Which of the following bitwise operator will you use to invert all the bits in a bit array?

a) OR
b) NOT
c) XOR
d) NAND

Answer: b
Explanation: NOT operation is used to invert all the bits stored in a bit array.
Eg: NOT (10110010) = 01001101.

Comments