Write a Macro’s Set,clear and toggle n’th bit using bit wise operators?

Write a Macro’s Set,clear and toggle n’th bit using bit wise operators?

 

 

Output

Set clear and toggle n th bit using bit wise operators

 

Suggested Reading

  1. Count number of 1s in given binary number
  2. Find position of the only set bit
  3. Write a c program to implement XOR functionality with out using XOR(^) operator