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 is logical error?

1103


What is a structure and why it is used?

1197


What is the difference between malloc calloc and realloc in c?

1120


I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.

2357


What is a stream in c programming?

1130


How macro execution is faster than function ?

1173


to print the salary of an employee according to follwing calculation: Allowances:HRA-20% of BASIC,DA-45% of BASIC,TA-10%. Deductions:EPF-8% of BASIC,LIC-Rs.200/-Prof.Tax:Rs.200/- create c language program?

2162


Can we assign integer value to char in c?

1224


What is a structural principle?

1148


How do I swap bytes?

1061


What is %lu in c?

1239


What is the purpose of main() function?

1232


Describe explain how arrays can be passed to a user defined function

1084


What is calloc() function?

1081


What is c token?

1051