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 / learning

x=x-a;
a=x+a;
x=a-x;

x=x-p;
p=x+p;
x=p-x;

Is This Answer Correct ?    12 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the Difference between in memory database and physical database

2554


For a binary tree with n nodes, How many nodes are there which has got both a parent and a child?

3616


what is log files in qtp what is use

2002


How to call dll API sub routine in VB Form.

2336


What is diffrent between Method and and function in c#

1981


3 members in a pf.how we read 3 members without using ovrdbf.using rg pgms....

2240


What r the attributes using in Win Runner?

2389


where is available in this mantis toturials?

2104


What is %Type,%Rowtype?

2246


hi This is radhika.Can anyone help me to know the question papers of NATIONAL INFORMATICS CENTRE for the post of scientific officer/engineer? if anyone know plz tell me question paper pattern

2068


what is woransient key word? how it is used in java

2318


You are given some denominations of coins in an array (int denom[])and infinite supply of all of them. Given an amount (int amount), find the minimum number of coins required to get the exact amount. What is the method called?

1051


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

4365


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

1910


What for decision coverage and modified condition decision coverage are used? Wat is the difference between them?

2123