InterviewSolution
Saved Bookmarks
| 1. |
Which of these expressions will make the rightmost set bit zero in an input integer x?(a) x = x | (x-1)(b) x = x & (x-1)(c) x = x | (x+1)(d) x = x & (x+2)I got this question in an interview for job.Question is from Integer Types in division Types, Pointers, Arrays & Structures in C++ of C++ |
|
Answer» The correct OPTION is (b) x = x & (x-1) |
|