+1 vote
in Data Structures & Algorithms I by (110k points)
Which of the following bitwise operations will you use to set a particular bit to 0?

(a) OR

(b) AND

(c) XOR

(d) NAND

My query is from Bit Array in portion Arrays Types of Data Structures & Algorithms I

This question was addressed to me during an interview.

1 Answer

+1 vote
by (408k points)
selected by
 
Best answer
Correct option is (b) AND

The best explanation: 1 AND 0 = 0, 0 AND 0 = 0, any bit AND with 0 gives 0.

Related questions

Welcome to TalkJarvis QnA, a question-answer community website for the people by the people. On TalkJarvis QnA you can ask your doubts, curiosity, questions and whatever going in your mind either related to studies or others. Experts and people from different fields will answer.

Categories

...