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

How many ways are there to swap two numbers without using
temporary variable? Give the each logic.

Answer Posted / kk

three logic
xor -> a^=b^=a^=b;
addition and subtraction,
multiply and division .......

Is This Answer Correct ?    8 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I send escape sequences to control a terminal or other device?

1035


How can you tell whether a program was compiled using c versus c++?

1060


What is a macro, and explain how do you use it?

1040


hi send me sample aptitude papers of cts?

2122


Explain is it valid to address one element beyond the end of an array?

1170


What is the benefit of using #define to declare a constant?

1067


Who is the founder of c language?

1132


How variables are declared in c?

1010


What is the difference between array and structure in c?

1113


What are bitwise shift operators in c programming?

1053


Why c is a procedural language?

1027


What are the disadvantages of a shell structure?

1299


How will you delete a node in DLL?

1253


Is main is user defined function?

1088


What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.

4260