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

swap(int var1,int var2)
{
var1=var1+var2;
var2=var1-var2;
var1=var1-var2;
}

thanks for asking.

Is This Answer Correct ?    45 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is difference between input parameter and output parameter.

4855


what do u mean by tagging

2074


Have you used callsymputx? what points need to be kept in mind when using it?

1993


it is a language or tools?

2101


Write a program to reverse a number?

1199


Can we write a method in JSP.If so how?

2040


What are the Short cut Keys of Tally ERP?

2343


What is the difference between WebIntelligence and Designer in creating universes?

2066


Difference between HTML and DHTML?

2246


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

2270


I am looking for NIC Sample papers or any patern of questions/ syllabus plz, send me on hamid.khan135@yahoo.in Regard

1981


Hi All, Can any one please send me the difference between informatica 7i and 8i versions, Thanks in advance. vinod

1991


we create a pf with 3 fields.2 is defined as keyfields.we lock it with alcobj command.how we find out whether the file is locked or not?is it dspfd??/

2046


what is web configuration file

2081


WS-NUM PIC S9(05)V(02) SIGN TRAILING SEPARATE MOVE '0050000+' TO WS-NUM The value stored is 00500,00+ MOVE '0050000-' TO WS-NUM Then what is the value will be stored in WS-NUM? Am getting '-00500,00'.....>>> What should I declare to WS-NUM so that I can get correct values for both + & - signs.

2383