binaryNum = binaryNum & ~ (1u << 7)
here binaryNum is your binary representation of number.
7(7 because it starts from 0) is the ith position where you wants to change.
solved How to change 8th position no to 0 in a 32 bit integer
binaryNum = binaryNum & ~ (1u << 7)
here binaryNum is your binary representation of number.
7(7 because it starts from 0) is the ith position where you wants to change.
solved How to change 8th position no to 0 in a 32 bit integer