How to replace the independent 1 with 0 in binary number using only bitwise operations?
How to replace the independent 1 with 0 in binary number using only bitwise operations? Question: By "independent 1" I mean 1 that has no other 1 next to it ("010" or "10" and "01" at the ends of the num.) If the 1 doesn´t have any 1 next to it, it will change to …