Flip a bit in a uint32 using C.
Anonymous
For those not familiar with C, I believe teh following should work: //This is using the Exclusive Or(XOR) operator unsigned flipBit ( unsigned x, unsigned bit ) { return x ^ (1UL << bit);4. }
Check out your Company Bowl for anonymous work chats.