Why not use: x = !x;?

No. Both codes will compile to the same binary

1 Like