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 to swap all the values without using temporary variable.
tha values r a = 20, x=60 and p=2.

Answer Posted / chaitanya

x=x^a;
a=x^a;
x=a^x;

x=x^p;
p=x^p;
x=p^x;

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I want to pass .pdf files as OlE Object to crystal report through VB6. Please any one guid me...

3040


how can we maintain the previous version scripts to new version.

1941


Diffrence between 2.0,3.0,3.5,4.0. versions of .net?

3152


how to fin top two miximum values in sql? not 2nd both max value of 1st and 2nd both have to find out

1911


Write a pascal program to calculate the sum of the first 100 even number and odd number

4390


Explain the difference between an expert and a novice user. How would your strategy for designing user interfaces for an expert user differ from that for designing user interfaces for a novice user.

3047


Write a program to create a process in UNIX

2553


how do find the user exit for selected feild whatis the process and can u plz explain it

2140


WHat is execution in manual testing and when will we start execution and what language we use in execution

1948


what is delegate and delegation model give the real live example on delegate model

3287


Given an array of size n+1 which contains all the numbers from 1 to n.Find the number which is repeated in O(n) time.How do you proceed with the same with floating numbers from 0 to 1 instead of 1 to n?

1047


How to use string functions in QTP?give some examples

7901


how can we implement locks in plsql?

2306


why not instantiating servet using new operator?

1956


what is throws keyword

3651