General Atomics Interview Question

How would you toggle a bit? Without altering the rest of the data?

Interview Answer

Anonymous

Oct 3, 2017

Mask of 0s with the target bit being 1, XOR with data.

1