2

Possible Duplicate:
How to reverse bitwise AND (&) in C?

If I am using bitwise AND

7758194 & 255 = 114

how could I get back 7758194, given the result 114?

Community
  • 1
  • 1
wapplay
  • 53
  • 1
  • 4

1 Answers1

5

The & operator, bitwise or not, is simply not reversible.

0 & 1 => 0
0 & 0 => 0
1 & 0 => 0

So you can't.

Denys Séguret
  • 372,613
  • 87
  • 782
  • 758