Please help

Dec 14, 2016 at 5:09pm
How to flip bits of a number in C++? for ex: 5->101 should become 010 which is 2
Dec 14, 2016 at 5:26pm
Use the XOR bitwise operator (^).
http://www.cplusplus.com/doc/boolean/
Topic archived. No new replies allowed.