Possible Duplicate:
How do you set, clear and toggle a single bit in C?
Can some one help me how to toggle a bit at ith position. One way is to ((n>>i)^1) < < i. Are there any other ways ?
Possible Duplicate:
How do you set, clear and toggle a single bit in C?
Can some one help me how to toggle a bit at ith position. One way is to ((n>>i)^1) < < i. Are there any other ways ?