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

Explain how do you print an address?

1086


How to declare pointer variables?

1161


What is the difference between #include and #include 'file' ?

999


Which of these functions is safer to use : fgets(), gets()? Why?

1043


What is the difference between a string and an array?

1152


difference between object file and executable file

6640


Explain is it better to bitshift a value than to multiply by 2?

1135


Is register a keyword in c?

993


Are there namespaces in c?

1051


What is the translation phases used in c language?

1056


What is graph in c?

1007


What is p in text message?

934


What is meant by operator precedence?

1095


What is action and transformation in spark?

1081


Explain what does it mean when a pointer is used in an if statement?

1004