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

What are the primitive data types in c?

1091


c language interview questions & answer

1976


hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm

2033


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

1056


What is size of union in c?

1041


What are volatile variables in c?

964


What is the use of void pointer and null pointer in c language?

1137


What is the difference between test design and test case design?

2105


How to Throw some light on the splay trees?

1077


What is the maximum no. of arguments that can be given in a command line in C.?

1163


What is a constant and types of constants in c?

1144


Linked list is a Linear or non linear explain if linear how it working as a non linear data structures

2196


What is c basic?

1190


How can you read a directory in a C program?

1154


How can I discover how many arguments a function was actually called with?

1082