Bitwise operators can be used to perform the addition (+) operation as mentioned in below example π
int Add(int x, int y)
{
if (y == 0)
return x;
else
return Add( x ^ y, (x & y) << 1);
}
γ°γ°γ°γ°γ°γ°γ°γ°γ°γ°γ°γ°γ°γ°γ°γ°
#c #cpp #operator
@ProgrammingTip