Hey experts! I hope you are prepared for an onslaught of questions I have for you.
I'm doing bit level manipulations in C. I am trying to basic manipulations using a limited amount of operations.
bitXor - x^y using only ~ and &
Example: bitXor(4, 5) = 1
Legal ops: ~ &
Max ops: 14
How do I program the BitXor with just ~ and &? I am restricted to those two operations and and being able to create local variables and const values. anyone got ideas?
I'll be handing out more nad more points, I have a ton and not afraid to dump them :)
**Update new question below, I answered my own question, I double the points though