Design‎ > ‎Design Pattern‎ > ‎

Bitwise

1. /* Get one set bit in the xor2. We get rightmost set bit
     in the following line as it is easy to get */
  set_bit_no = xor2 & ~(xor2-1);
Comments