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

asked
User Twm
by
7.9k 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:):)

answered
User Fxbt
by
8.4k points

No related questions found

Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.