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

Given an array of size n. It contains numbers in the range 1 to n. Each number is present at least once except for 1 number. Find the missing number

1161


how to add a new table with variables and thier values into a imported file uisng proc import?

1904


what is the software to run the GSM gate opener program

2231


What is the use of Differ interface check box in Ship confirm?

2387


how to study PHP my own? i reffered many sites.. but as being a fresher i couldnt follow those... which site will be the best one?

2276


define profiler???

2053


what is the difference between SCAN AND CHECK,LOKUP AND XFOOT? where we can use thease opcodes? Can any body tell me real time senariao with example?

2567


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

2152


How to connect the .accdb database file of microsoft access to the Visual Basic 6.0 forms?

4288


I need source code for Enrollment System using Visual Basic 6.0/2008 database MS Access 2007 for my school thesis project...please help me..kindly send in my email jpinedamcp@gmail.com

2039


what is web service in java? have u use before.

2156


in IT trend mantis meant what? how to know mantis in IT trends? detail description about mantis?

2186


how do you generate source code for the automatic generation for receipt number

4730


What is easiest way to get the PL/i compiler,I didn't have found the compiler in my library. Is there any extra cost if we want to access the PL/1 programs?Actually we r having Mainframe rented training Ids

2212


how many types of bytes are there???

2565