NVIDIA Interview Question

How to toggle a specific bit in a 32 bit integer (bit level logic)?

Interview Answer

Anonymous

Aug 26, 2017

We need to xor that bit with 1 to toggle it.

1