WR Home      Topic Home      Chapter:  1  2  3 
<Previous Next>

Chapter 03

Commonly used bit-manipulation functions

Page 15

Some Questions on Bit Manipulation



Explain what the following code does:
n & (n-1) == 0





Reference (Book):
Craking the coding interview (Fifth Edition)
                         Gayle Laakmann McDowell
(Detailed solution is given in book)



WR Home      Topic Home      Chapter:  1  2  3 
<Previous Next>