C# Creating 8-bit binary number and bit manipulation

You should familiarize yourself with the binary operators (| & ^) For instance you can toggle the least significant bit of a number by XOR’ing it with 00000001:

x = x ^ 0b00000001;

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top