Say you have two integers, A and B.
int A = 0b0011;
int B = 0b1001;
How do I determine if a 0
in A goes to a 1
in B.
I don't care if a 1
in A goes to 0
in B, or if the bit stays the same, only if a 0
goes to a 1
.
The output I would want here would be:
result = 0b1000