Answers for "bit() c++"

C++
1

bit c++

Set ith bit:    x|(1<<i)
Get ith bit:    (x&(1<<i) != 0)
Clear ith bit:   x&(~(1<<i))
Posted by: Guest on April-21-2021

Browse Popular Code Answers by Language