InterviewSolution
Saved Bookmarks
| 1. |
Which of the following bitwise operations will you use to set a particular bit to 1?(a) OR(b) AND(c) XOR(d) NORThis key question is from Bit Array topic in division Arrays Types of Data Structures & Algorithms II got this question in an online interview. |
|
Answer» CORRECT ANSWER is (a) OR The best explanation: 1 OR 1 = 1, 0 OR 1 = 1, any bit OR’ED with 1 GIVES 1. |
|