Ruby program to clear the specific bit using the bitwise operator
num=12
num = num & ~(1<<3)
print "Num: ",num
Output:
Num: 4
num=12
num = num & ~(1<<3)
print "Num: ",num
Output:
Num: 4