Get position of the set bit in C : <p>I have a 4 byte data.Each bit will be acting as a switch.I need to enable/disable the switch based on the bits value in the 4 byte data.What will be the optimized way to get the positions of bit that are set out of 32 bits..?</p>
