1.

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) NANDOrigin of the question is Bit Array topic in division Arrays Types of Data Structures & Algorithms IThis question was addressed to me in exam.

Answer»

Correct CHOICE is (b) NOT

The BEST I can explain: NOT operation is used to INVERT all the BITS stored in a bit array.

Eg: NOT (10110010) = 01001101.



Discussion

No Comment Found

Related InterviewSolutions