How do you add two numbers using bitwise operators ?

Showing Answers 1 - 1 of 1 Answers

we can add 2 numbers using xor operator but it will not handle carry therefore, we first use and operator on those 2 numbers n den take a xor of dem ...shift d res of and by 1 bit and den wil xor again the res of shift with d prev xor res....until carry=0

i thnk it will work

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions