### What You Need To Learn About Using Bits In C++ Software

March 11, 2022

How can we print numbers in binary form? How can we set a bit in an integer? How we can set, clear, or toggle bits (binary digits) of a number? How can we change the nth bit of a number? In this post, we will answer these questions and use them in our own C++ software. First let’s remind ourselves where bits come from.
A brief background to CPU architecture
The construction, size…