Answers for "clear ith bit"

0

clear ith bit

x&(~(1<<i))
~ : inverts

   0011 0110
&  1101 1111   ~(1<<i)
  -----------
   0001 0110
Posted by: Guest on April-20-2021

Browse Popular Code Answers by Language