[ad_1]
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.
[ad_2]
solved How to change 8th position no to 0 in a 32 bit integer
[ad_1]
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.
[ad_2]
solved How to change 8th position no to 0 in a 32 bit integer