I am quite new to programming and i have been trying to learn some basic binary, but there is still one thing that i don't quite understand. It's the rules regarding the NOT operator.
lets say i wan't to calculate this: 62&~29
62 = 111110
29 = 011101
now the result as far as i understand should be this:
100011 = 35
but the result i get from the code is 34.
So my question is: what is happening with the last value? Why is it not being added to 34?
Hope someone can explain it to me :D
Have a nice day.