+1 vote
in Data Structures & Algorithms I by (110k points)
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

Origin of the question is Bit Array topic in division Arrays Types of Data Structures & Algorithms I

This question was addressed to me in exam.

1 Answer

+1 vote
by (408k points)
selected by
 
Best 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.

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

...