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

What is calloc malloc realloc in c?

1068


Tell me what are bitwise shift operators?

1142


Explain what are reserved words?

1116


which type of aspect you want from the student.

2171


find the sum of two matrices and WAP for it.

1151


Is a house a shell structure?

1174


What is a static function in c?

1181


What is a nested loop?

1144


What are the properties of union in c?

1061


please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com

1780


How pointers are declared?

969


Write a function that will take in a phone number and output all possible alphabetical combinations

1063


An organised method of depicting the use of an area of computer memory used to signify the uses for different parts of the memory a) swap b) extended memory c) memory map d) all of the above

1193


What is a built-in function in C?

1617


Is c a great language, or what?

1128