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

To swap the values without using temporary variable
for a,x and p,
Do a call to swap function for a and p and
another call to same swap function for x and p.
call1:swap(a,p);
call2:swap(x,p);
swap(variable1,variable2)
{no temporary variable}

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hai, My name is nisha.I have NIC exam.If anybody Knows NIC previous paper pattern pls send me to nishanairp@gmail.com

2122


What are the Short cut Keys of Tally ERP?

2236


how can we implement locks in plsql?

2243


can we retrieve only integer/String type columns from a table,if yes how?

1872


Hello...has anyone interviewed with Information Management Services(IMS)located in Silver Spring MD??If yes,what can you share about the programming test and the analytical test?

1932


Please forward important interview and basic questions in VB6 on my email id: usneha_16@yahoo.co.in

1982


Tag for turning an image into a hyperlink is

2220


i am exeprienced person what is selection process

1566


Is there any standard procedure to test the application as a whole? Or How can I test complete application right from the requirement gathering?

1874


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

1934


what is meant by life cycle of a business

2202


19. Given a system that is described with the following equation, X=A+(B.(A̅+C)+C)+A.B.(D̅+E̅) a) Simplify the equation using Boolean Algebra. b) Implement the original and then the simplified equation with a digital circuit. c) Implement the original and then the simplified equation in ladder logic.

1626


which worker is involved in all the phases of SDLC?

2097


how to stop execution of step 3 in a job mainframe

2085


Which method protects back button to retrieve old value from previous page in Struts.

1814