Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

write a c programme for add of two numbers with out use of
arthematic operators

Answer Posted / upendra pratap shahi

int xor, and, temp;
and = x & y;
xor = x ^ y;

while(and != 0 )
{
and <<= 1;
temp = xor ^ and;
and &= xor;
xor = temp;
}

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why isnt there a numbered, multi-level break statement to break out

1100


What the different types of arrays in c?

1124


What is the meaning of c in c language?

1245


What is this infamous null pointer, anyway?

1104


What is the best way of making my program efficient?

1083


What is a volatile keyword in c?

1212


What is the use of ?: Operator?

1187


What is a union?

1092


Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?

1258


Which programming language is best for getting job 2020?

1101


What are formal parameters?

1174


Why c is procedure oriented?

1123


Are there any problems with performing mathematical operations on different variable types?

1105


What is difference between array and structure in c?

1270


Simplify the program segment if X = B then C ← true else C ← false

3066