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 structure in c explain with example?

1160


How is a macro different from a function?

1172


What is the difference between break and continue?

1514


By using C language input a date into it and if it is right?

1079


How can I rethow can I return a sequence of random numbers which dont repeat at all?

1188


WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?

2377


What is function prototype?

1134


How can a program be made to print the line number where an error occurs?

1083


Differentiate call by value and call by reference?

960


Difference between pass by reference and pass by value?

1158


What is the sizeof () operator?

1080


How will you write a code for accessing the length of an array without assigning it to another variable?

1044


what is the difference between 123 and 0123 in c?

1201


What are the primitive data types in c?

1074


What are terms in math?

1045