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

write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.

2846


What is the size of array float a(10)?

1147


What are pointers? Why are they used?

1190


Explain the difference between exit() and _exit() function?

1175


What is the scope of local variable in c?

1137


what will be maximum number of comparisons when number of elements are given?

1911


Is it possible to pass an entire structure to functions?

998


What are the 5 types of organizational structures?

1085


Explain why C language is procedural?

1230


How is a pointer variable declared?

1103


What is #line used for?

1031


What are keywords in c with examples?

1091


What are two dimensional arrays alternatively called as?

1191


Define C in your own Language.

1087


What is double pointer?

1008