1.

Which of the following bitwise operations will you use to set a particular bit to 0?(a) OR(b) AND(c) XOR(d) NANDMy query is from Bit Array in portion Arrays Types of Data Structures & Algorithms IThis question was addressed to me during an interview.

Answer»

Correct OPTION is (b) AND

The BEST explanation: 1 AND 0 = 0, 0 AND 0 = 0, any BIT AND with 0 gives 0.



Discussion

No Comment Found

Related InterviewSolutions