Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Whatever
Add 2 numbers a and b without using ?+? operator.
Mai
Programming language:
Whatever
2021-07-14 04:41:48
0
Q:
Add 2 numbers a and b without using ?+? operator.
Hurt Hornet
Code:
Whatever
2021-08-31 13:55:27
int Add(int x, int y) { if (y == 0) return x; else return Add( x ^ y, (x & y) << 1); }
0
Tags
number
using
add
Related
print till two decimal places in c
2's complement range of numbers explained
How to solve add decimals in strings as integers
New to Communities?
Join the community