NVIDIA interview question

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

Interview Answer

Anonymous

26 Aug 2017

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

1