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...

swapping of two numbers without using third variable using
AND and OR operators

Answer Posted / ramesh reddy

a = a^b; b =a^b; a =a^b;
or
a=a+b; b=a-b; a=a-b;

Is This Answer Correct ?    43 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the return type of sizeof?

1114


How can I read data from data files with particular formats?

1093


What is main function in c?

1137


What is pass by value in c?

1134


When should we use pointers in a c program?

1196


What is static and auto variables in c?

1143


What is scope rule in c?

1122


Explain what is the difference between the expression '++a' and 'a++'?

1265


program to convert a integer to string in c language'

2507


Calculate 1*2*3*____*n using recursive function??

2099


Explain what is a const pointer?

1123


Write a C program in Fibonacci series.

1137


Explain why c is faster than c++?

1126


What is the maximum length of an identifier?

1231


What is main () in c language?

1187