60.5k views
3 votes
How can we add two numbers together without signs​

User Twm
by
5.8k points

1 Answer

3 votes

Answer:

Write a function that returns sum of two integers. The function should not use any of the arithmetic signs (+, ++, -, .. etc).The Sum of two bits can be found by performing XOR(exclusive or) (^) of both bits.

Step-by-step explanation:

I hope this helps in some way:)

comment if you get it wrong:):)

User Fxbt
by
6.4k points