Set, Clear, Toggle Bits in Register

Easy C Memory
Solve this problem

Implement functions to set, clear, and toggle bits in a register.

Constraints

  • Use bitwise ops.
  • Return new value.
  • Only bit 0 affected.
Starter codeC
1int setb(int x);2int clearb(int x);3int toggleb(int x);