Search:
Forum
Beginners
Please help
Please help
Dec 14, 2016 at 5:09pm UTC
newbie456
(35)
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 UTC
AbstractionAnon
(6954)
Use the XOR bitwise operator (^).
http://www.cplusplus.com/doc/boolean/
Topic archived. No new replies allowed.
C++
Information
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs