int Add(int x, int y)
{
if (y == 0)
return x;
else
return Add( x ^ y, (x & y) << 1);
}
One thought on “How to Add numbers without ‘+’ operator in c/c++”
Just desire to say your article is as amazing. The clearness to your post is just excellent and i can suppose you’re knowledgeable in this subject. Well along with your permission allow me to clutch your feed to stay up to date with impending post. Thanks one million and please continue the gratifying work.
Just desire to say your article is as amazing. The clearness to your post is just excellent and i can suppose you’re knowledgeable in this subject. Well along with your permission allow me to clutch your feed to stay up to date with impending post. Thanks one million and please continue the gratifying work.