Is it possible to perform all arithmetic operations (+,-,*,/) using Bitwise operations only. Please consider signed numbers also.
Thank You.
Thank You.
int add(int a, int b)
{
do
{
a=a^b;
b=(a^b)&b;
b=b<<1;
} while(b);
return(a);
}
Comment