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 values between two variables without using a
third variable?

Answer Posted / kumar

//language using C#

int a=10;
int b=20;

a=a+b;
b=a-b;
a=a-b;

thanks
Kumar
http://www.sourcecodehub.com/php/how-to-swap-values-of-two-variables-without-using-a-third-variable-integer/

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In JCl , we have COND parameter.This holds comparison code and condition.It also has only and even parameters. ex: COND((4,GE),EVEN).what the comma mean here. is that 'and' or 'or'.

2268


hi viewers, tell me,what is scripting and programming, define and difference...pls

1981


how to add Servlet-api.jar file into eclipse 3.3.2 ?

4583


iam confused among testing ,.net and java. can anybody help me.

2012


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

2264


how many types of bytes are there???

2565


I am work in it aompenei

1436


Write a shell program where you enter a number which corresponds to K.M. Find out the corresponding values in m, cm, inches, and feet. Hints:- 1 k.m= 1000 m 1 m= 100 cm 1 inches= 2.54 cm. 1 feet= 12 inches

1994


pleasew define carrier scope in abap (sap).

2662


Hi..Am done with my Masters recently..Am planning to learn TIBCO.. could anyone suggest me about how the job market will be and Is there any course necessary to learn prior to Tibco..i mean any prerequisite. I dnt have any knowledge on PL/SQL thats it... Plz suggest me in a best way...

2245


what is the difference between read the data from table and infotype

2545


Hello Experts, What is the difference between move and move corresponding exactly? please post me asap

1856


how to hide prompts

1885


8.In DSP,Define Signal and System?and various type of signals.

2040


How does the TCP handle the issue of multiplexing?

2890