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 do we use header files in c?

1036


Who is the founder of c language?

1132


What is #include conio h?

972


In c language can we compile a program without main() function?

1083


Explain how does free() know explain how much memory to release?

1030


What are extern variables in c?

963


What are nested functions in c?

992


What is #include stdio h and #include conio h?

1066


a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler

1046


The file stdio.h, what does it contain?

1135


What is a node in c?

942


What is the difference between int main and void main?

1017


What is getch () for?

1174


Why we use conio h in c?

1170


Explain what is the difference between text files and binary files?

1120